Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> zookeeper connection problem in pseudo mode


Copy link to this message
-
Re: zookeeper connection problem in pseudo mode
Hallo,

I input the first command
$ telnet localhost 2181
the output is

Trying 127.0.0.1...
Trying ::1...
telnet: Unable to connect to remote host: Network is unreachable

As I run the pseudo mode, server and client are the same. So I input

 netstat -na | grep LISTEN | grep 2181

But I got no output information.

Yong
On Fri, Jan 6, 2012 at 2:25 PM, Leonardo Gamas
<[EMAIL PROTECTED]> wrote:
> Yong,
>
> Just to have more info, if you run locally to your server:
>
> $ telnet localhost 2181
>
> It connects?
>
> And if you run this command from your host to the server:
>
> $ telnet <server_ip or hostname> 2181
>
> What happens?
>
> In the server:
>
> $ netstat -na | grep LISTEN | grep 2181
>
> What is printed?
>
> 2012/1/6 yonghu <[EMAIL PROTECTED]>
>
>> Thanks for your response. I use Ubuntu 10.04 and the following is the
>> command information I got
>>
>> huyong@huyong-laptop:~$ sudo /etc/init.d/iptables stop
>> [sudo] password for huyong:
>> sudo: /etc/init.d/iptables: command not found
>>
>> The way you did can't work for me. The way I used is from
>> https://help.ubuntu.com/community/IptablesHowTo
>>
>> Can you show me your hbase configuration. I mean the content of
>> hbase-site.xml. Or you can give me link that I can check if I did the
>> right configuration steps. Thanks very much.
>>
>> Yong
>>
>> On Fri, Jan 6, 2012 at 12:23 PM, Tom Wilcox <[EMAIL PROTECTED]> wrote:
>> > Hi Yong,
>> >
>> > When I run:
>> >
>> > sudo /etc/init.d/iptables stop
>> >
>> > I see the following output:
>> >
>> > iptables: Flushing firewall rules:                         [  OK  ]
>> > iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
>> > iptables: Unloading modules:                               [  OK  ]
>> >
>> > And my connection stopped being refused. Since I wasn't 100% sure what
>> ports needed opening for HBase and co to work and my system was on a closed
>> development network, I was happy just to stop the firewall services
>> completely as above, rather than to modify the rules.
>> >
>> > We have successfully combined (Hadoop 0.20.2 with HBase 0.90.4) and
>> (Hadoop 1.0.0 with HBase 0.92).
>> >
>> > HTH
>> >
>> > Tom
>> > ________________________________________
>> > From: yonghu [[EMAIL PROTECTED]]
>> > Sent: 05 January 2012 21:22
>> > To: [EMAIL PROTECTED]
>> > Subject: Re: zookeeper connection problem in pseudo mode
>> >
>> > this is how I stop the firewall.
>> https://help.ubuntu.com/community/IptablesHowTo
>> >
>> > sudo nano -w /root/fw.stop
>> >
>> > echo "Stopping firewall and allowing everyone..."
>> > iptables -F
>> > iptables -X
>> > iptables -t nat -F
>> > iptables -t nat -X
>> > iptables -t mangle -F
>> > iptables -t mangle -X
>> > iptables -P INPUT ACCEPT
>> > iptables -P FORWARD ACCEPT
>> > iptables -P OUTPUT ACCEPT
>> >
>> > sudo /root/fw.stop
>> >
>> > at last I saw the output:
>> > huyong@huyong-laptop:~/hbase-0.90.3/bin$ sudo /root/fw.stop
>> > stopping firewall
>> >
>> > I am not sure weather it is what you mean to close the firewall. I
>> > don't know if my Hadoop version 0.20.2 and Hbase 0.90.3 version are
>> > compatible.
>> > Yong
>> >
>> >
>> > On Thu, Jan 5, 2012 at 6:32 PM, Royston Sellman
>> > <[EMAIL PROTECTED]> wrote:
>> >> Just to check - did you disable it the way Tom suggested? By stopping
>> iptables?
>> >> It's not sufficient just to turn off firewall from the control
>> panel/app.
>> >>
>> >> Best,
>> >> Royston
>> >>
>> >>
>> >> On 5 Jan 2012, at 17:00, yonghu wrote:
>> >>
>> >>> I have already disabled ipv6 and close the firewall, but I still get
>> >>> the same problem. :(
>> >>>
>> >>> Yong
>> >>>
>> >>> On Thu, Jan 5, 2012 at 5:16 PM, yonghu <[EMAIL PROTECTED]> wrote:
>> >>>> I set up a pseudo mode, it also needs to close the firewall?
>> >>>>
>> >>>> Yong
>> >>>>
>> >>>> On Thu, Jan 5, 2012 at 4:59 PM, Tom Wilcox <[EMAIL PROTECTED]>
>> wrote:
>> >>>>> I've seen that error before. Have you tried turning off your
>> firewalls on each node?
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB