hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohammad Tariq <donta...@gmail.com>
Subject Re: Unable to connect to Hbase from a remote client.
Date Sun, 22 Jan 2012 20:30:26 GMT
As external IP was not working, I tried it with internal IP.Whenever I
give the external IP the output window keeps on showing the "running"
status forever, without producing any error or the output. (I am using
Netbeans).I was looking for some help over the internet and found a
post that states internal IP should work, so I thought of giving it a
shot.

Regards,
    Mohammad Tariq



On Sun, Jan 22, 2012 at 8:23 PM, Mark Kerzner <mark.kerzner@shmsoft.com> wrote:
> But in your error message, the ZooKeeper is trying to connect on an
> internal ip, 192.168.2.106:2181 , so where is the external one?
>
> Mark
>
> On Sun, Jan 22, 2012 at 8:50 AM, Mohammad Tariq <dontariq@gmail.com> wrote:
>
>> Hello Mark,
>>  I have seen the discussion. I am not able to access hbase even after
>> specifying the external IP.
>>
>> Regards,
>>     Mohammad Tariq
>>
>>
>>
>> On Sun, Jan 22, 2012 at 7:58 PM, Mark Kerzner <mark.kerzner@shmsoft.com>
>> wrote:
>> > Your ZooKeeper needs to give the external IP. That discussion happened a
>> > few days ago, with the same answer - and I still need to publish my
>> notes!
>> >
>> > Problem indication:
>> > 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Initiating client
>> > connection, connectString=192.168.2.106:2181 sessionTimeout=180000
>> >
>> > On Sun, Jan 22, 2012 at 8:26 AM, Mohammad Tariq <dontariq@gmail.com>
>> wrote:
>> >
>> >> Hello list,
>> >>
>> >>  I am trying to connect to Hbase from a remote machine, but I am
>> >> getting the following error -
>> >>
>> >> debug:
>> >> Hbase Demo Application
>> >> 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Client
>> >> environment:zookeeper.version=3.3.2-1031432, built on 11/05/2010 05:32
>> >> GMT
>> >> 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Client
>> >> environment:host.name=localhost
>> >> 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Client
>> >> environment:java.version=1.6.0_26
>> >> 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Client
>> >> environment:java.vendor=Sun Microsystems Inc.
>> >> 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Client
>> >> environment:java.home=/usr/lib/jvm/java-6-sun-1.6.0.26/jre
>> >> 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Client
>> >>
>> >>
>> environment:java.class.path=/home/chethan/hbase-0.90.4/hbase-0.90.4.jar:/home/chethan/hbase-0.90.4/lib/commons-logging-1.1.1.jar:/home/chethan/hbase-0.90.4/lib/log4j-1.2.16.jar:/home/chethan/hbase-0.90.4/lib/zookeeper-3.3.2.jar:/home/chethan/hadoop-0.20.205.0/hadoop-core-0.20.205.0.jar:/home/chethan/Downloads/NETBEANS_PROJECTS/hbaseClient/build/classes:/home/chethan/Downloads/NETBEANS_PROJECTS/hbaseClient/src
>> >> 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Client
>> >>
>> >>
>> environment:java.library.path=/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
>> >> 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Client
>> >> environment:java.io.tmpdir=/tmp
>> >> 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Client
>> >> environment:java.compiler=<NA>
>> >> 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Client environment:os.name
>> >> =Linux
>> >> 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Client
>> >> environment:os.arch=amd64
>> >> 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Client
>> >> environment:os.version=3.0.0-12-generic
>> >> 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Client environment:
>> user.name
>> >> =chethan
>> >> 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Client
>> >> environment:user.home=/home/chethan
>> >> 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Client
>> >>
>> environment:user.dir=/home/chethan/Downloads/NETBEANS_PROJECTS/hbaseClient
>> >> 12/01/22 19:48:19 INFO zookeeper.ZooKeeper: Initiating client
>> >> connection, connectString=192.168.2.106:2181 sessionTimeout=180000
>> >> watcher=hconnection
>> >> 12/01/22 19:48:19 INFO zookeeper.ClientCnxn: Opening socket connection
>> >> to server /192.168.2.106:2181
>> >> 12/01/22 19:48:19 INFO zookeeper.ClientCnxn: Socket connection
>> >> established to ubuntu/192.168.2.106:2181, initiating session
>> >> 12/01/22 19:48:19 INFO zookeeper.ClientCnxn: Session establishment
>> >> complete on server ubuntu/192.168.2.106:2181, sessionid =
>> >> 0x13504fde8e40057, negotiated timeout = 180000
>> >> 12/01/22 19:48:20 INFO
>> >> client.HConnectionManager$HConnectionImplementation: getMaster attempt
>> >> 0 of 1 failed; no more retrying.
>> >> 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.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
>> >>        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:604)
>> >>        at
>> >>
>> org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupIOstreams(HBaseClient.java:328)
>> >>        at
>> >>
>> org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:883)
>> >>        at
>> >> org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:750)
>> >>        at
>> >> org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:257)
>> >>        at $Proxy4.getProtocolVersion(Unknown Source)
>> >>        at
>> org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:419)
>> >>        at
>> org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:393)
>> >>        at
>> org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:444)
>> >>        at
>> >>
>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:360)
>> >>        at
>> >> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>> >>        at
>> >>
>> org.apache.hadoop.hbase.client.HBaseAdmin.checkHBaseAvailable(HBaseAdmin.java:1258)
>> >>        at hbaseclient.HbaseClient.main(HbaseClient.java:38)
>> >> Exception in thread "main"
>> >> org.apache.hadoop.hbase.MasterNotRunningException: localhost:60000
>> >>        at
>> >>
>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:396)
>> >>        at
>> >> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>> >>        at
>> >>
>> org.apache.hadoop.hbase.client.HBaseAdmin.checkHBaseAvailable(HBaseAdmin.java:1258)
>> >>        at hbaseclient.HbaseClient.main(HbaseClient.java:38)
>> >> Java Result: 1
>> >> BUILD SUCCESSFUL (total time: 1 second)
>> >>
>> >> Hbase is running properly on the host machine.I am using v-0.90.4
>> >>
>> >> Regards,
>> >>     Mohammad Tariq
>> >>
>>

Mime
View raw message