Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase, mail # user - Unable to connect to remote hbase from java client program

Copy link to this message
Unable to connect to remote hbase from java client program
yogeshgupta 2013-11-15, 12:15
Hi I am trying to connect to hbase in a remote machine from my java program.
But I am getting connection refused error. On looking at the error I think
it is trying to connect to my localhost instead of the remote machine.

My configuration is like-

Configuration config = HBaseConfiguration.create();
config.set("hbase.zookeeper.quorum.", "");
config.set("hbase.zookeeper.property.clientPort", "2180");

I am getting the following error-

13/11/15 17:35:08 WARN zookeeper.ClientCnxn: Session 0x0 for server null,
unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
13/11/15 17:35:08 INFO zookeeper.ClientCnxn: Opening socket connection to
server Will not attempt to authenticate using SASL
(unknown error)
13/11/15 17:35:08 WARN zookeeper.RecoverableZooKeeper: Possibly transient
ZooKeeper exception:
KeeperErrorCode = ConnectionLoss for /hbase/master
13/11/15 17:35:08 INFO util.RetryCounter: The 1 times to retry  after
sleeping 2000 ms

View this message in context: http://apache-hbase.679495.n3.nabble.com/Unable-to-connect-to-remote-hbase-from-java-client-program-tp4052843.html
Sent from the HBase User mailing list archive at Nabble.com.