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

Switch to Threaded View
HBase, mail # user - MasterNotRunningException


Copy link to this message
-
Re:MasterNotRunningException
Sudarshan Kadambi 2013-08-16, 21:58
I faced a similar issue wherein the Java client would complain about the Master not running while it'd work fine from the HBase shell. I looked into the Zookeeper tree and I noticed there was a /hbase and /hbase-unsecure sub-trees.

Setting conf.set("zookeeper.znode.parent","/hbase-unsecure"); where conf is the HBaseConfiguration solved this problem for me. This was particularly frustrating to troubleshoot.

----- Original Message -----
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
At: Aug 16 2013 03:37:25

Hi,
I am running HBase( 0.94.10 and with hadoop 1.0.4) in standalone mode.
I am able to connect to Hbase using Shell and create tables.
I'm not able to connect to HBase using java client by getting
MasterNotRunningException
from logs, I can see that session is established and getting terminated. I
tried with larger timeout(180000 ms) and still problem persists

Any help is appreciated.
Thanks
--vinay

*Exception on java client side:*

Caused by: org.apache.hadoop.hbase.MasterNotRunningException: Retried 1
times
        at
org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:139)
        at
org.apache.hadoop.hbase.client.HBaseAdmin.checkHBaseAvailable(HBaseAdmin.java:1777)
*HBase related logs:*
2013-08-16 12:19:04,986 INFO org.apache.zookeeper.server.ZooKeeperServer:
Client attempting to establish new session at /192.168.1.114:55185
2013-08-16 12:19:05,160 INFO org.apache.zookeeper.server.ZooKeeperServer:
Established session 0x14085e02df40003 with negotiated timeout 180000 for
client /192.168.1.114:55185
2013-08-16 12:19:05,485 INFO
org.apache.zookeeper.server.PrepRequestProcessor: Processed session
termination for sessionid: 0x14085e02df40003
2013-08-16 12:19:05,655 INFO org.apache.zookeeper.server.NIOServerCnxn:
Closed socket connection for client /192.168.1.114:55185 which had
sessionid 0x14085e02df40003

----vinay