Hi yogi,

Can check the port once is it 2180 or default 2181

Regards
M R

On Friday, November 15, 2013, yogeshgupta wrote:

> 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.", "10.219.47.22");
> 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.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
>         at
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
> 13/11/15 17:35:08 INFO zookeeper.ClientCnxn: Opening socket connection to
> server 127.0.0.1/127.0.0.1:2180. Will not attempt to authenticate using
> SASL
> (unknown error)
> 13/11/15 17:35:08 WARN zookeeper.RecoverableZooKeeper: Possibly transient
> ZooKeeper exception:
> org.apache.zookeeper.KeeperException$ConnectionLossException:
> 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.
>

Reply via email to