hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shashwat shriparv <dwivedishash...@gmail.com>
Subject Is it possible to connect HBase remotely?
Date Wed, 08 Feb 2012 14:26:12 GMT
I have two machine on same network IPs are like ** and **, suppose hbase (stand alone mode) running on *,
*and i have eclipse or netbeans running on *,* so i need to
retrieve and put data to hbase running on other ip, till now what i have
tried is creating a configuration for hbase inside my code like :

Configuration conf = HBaseConfiguration.create();
conf.set("hbase.master", "**");
HTable hTable = new HTable(conf, "table");

java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
12/02/08 19:44:28 INFO zookeeper.ClientCnxn: Opening socket connection to
server* localhost/*
12/02/08 19:44:28 WARN zookeeper.ClientCnxn: Session 0x1355d44ae6f0003 for
server null, unexpected error, closing socket connection and attempting

I a not able to understand why its trying to go to *localhost/
My host file configuration is follows :

========================================================================================================================== localhost ubuntu.ubuntu-domain ubuntu ubuntu   ubuntu1   ubuntu2   ubuntu3

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
I am able to telnet to localhost:9000,, myhostname:9000, but
if i am trying to connect to my ip which is 1982.168.2.125 its not
connecting : its saying connection reffused.

What method should follow to achieve this(connect to HBase running on
another pc on the same network). any tutorial link will be appreciated.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message