Member since
02-03-2016
2
Posts
1
Kudos Received
0
Solutions
02-03-2016
08:56 PM
@Enis Thanks for the tip! Worked perfectly.
... View more
02-03-2016
07:42 PM
1 Kudo
I have setup the HDP Sandbox 2.3.2 under VirtualBox running on my Mac. I am able to interact with HBase from inside the VM without any problem. However, when I try to connect via Java from my host, the connection fails. I have forwarded port 16000 and created a "sandbox.hortonworks.com" entry in /etc/hosts (similar to this post). Here is my Java code: Configuration conf = HBaseConfiguration.create();
conf.set("fs.defaultFS", "hdfs://127.0.0.1:8020/");
conf.set("hbase.zookeeper.property.clientPort", "2181");
conf.set("hbase.zookeeper.quorum", "sandbox.hortonworks.com");
conf.set("zookeeper.znode.parent", "/hbase-unsecure");
HBaseAdmin.checkHBaseAvailable(conf);
Update: A more helpful exception than the one below: Master is not running: org.apache.hadoop.hbase.MasterNotRunningException: The node /hbase is not in ZooKeeper. It should have been written by the master. Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
Not sure why '/hbase' is being used, when I set "zookeeper.znode.parent" to "/hbase-unsecure" explicitly! Update #2: Running the code on the Sandbox gives exactly the same error. Any help? Old: and I get this exception: org.apache.hadoop.hbase.MasterNotRunningException: com.google.protobuf.ServiceException: org.apache.hadoop.hbase.exceptions.ConnectionClosingException: Call to sandbox.hortonworks.com/127.0.0.1:16000 failed on local exception: org.apache.hadoop.hbase.exceptions.ConnectionClosingException: Connection to sandbox.hortonworks.com/127.0.0.1:16000 is closing. Call id=0, waitTime=47
at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation$StubMaker.makeStub(ConnectionManager.java:1533)
<snip> Any suggestions or help? Why would HBase be closing my connection?
... View more
Labels:
- Labels:
-
Apache HBase