Thanks, Harsh J, but I have checked /etc/ dir and hbase's root directory, there is no zoo.cfg file present in both places...
I am aware that hbase client will first check zookeeper before contacting hbase itself (for -ROOT- table and .META table ...). is there anyway - to test if zookeeper can be connected successfully? - to test correctness of the result from lookup zookeeper (but before querying -ROOT- table). This looks general problem to setup hbase... and thanks. regards, Richard On Mon, Sep 3, 2012 at 1:10 AM, Harsh J <[email protected]> wrote: > Richard, > > Do you perhaps have a stray /etc/zookeeper/zoo.cfg file lying around > on your client node? > > I think the issue may be that its picking up a default of localhost > from reading an non-configured zoo.cfg on the classpath. > > On Sun, Sep 2, 2012 at 7:08 PM, Richard Tang <[email protected]> > wrote: > > Hi, I have a connection problem on setting up hbase on remote node. The > > ``hbase`` instance is on a machine ``nodeA``. when I am trying to use > hbase > > on ``nodeA`` from another machine (say ``nodeB``), it complains > > > >> Session 0x0 for server null, unexpected error, closing socket connection > > and attempting reconnect > > > >> java.net.ConnectException: Connection refused > > > >> ... > > > > Also, I used hbase shell from ``nodeB`` to test hbase against ``nodeA``, > > but still without success. In the shell, when issuing ``list``, it gets > > stuck there... > > > > To diagnose, I can however run following test program with success. > > 1.zkcli utility can be tested against zookeeper on ``ndoeA``, as > > > >> ./bin/hbase zkcli -server nodeA:2181 > > > > 2.I can also successfully ``ssh`` to the node, like ``ssh -X root@nodeA > ``. > > What could possibly be the reason for that error? > > > > regards, > > Tang > > > > -- > Harsh J >
