org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master

SpringSource Issue Tracker | Rajit Saha | 4 years ago
  1. 0

    With Serengeti M4 + patch for MapR Hbase , we found an issue that in 'mapr_hbase_client' node, /opt/mapr/hbase/hbase-0.92.2/conf/ 'hbase.zookeeper.quorum' is not populated with comma separated zookeeper nodes and 'hbase.zookeeper.property.clientPort' is not set with '5181'. These parameters are properly setup in 'mapr_hbase_regionserver' nodes. As a result of this Hbase shell is not working properly in 'mapr_hbase_client' but working well in 'mapr_hbase_regionserver' nodes. I found following error in client node. {noformat} [mapr@10 ~]$ hbase shell HBase Shell; enter 'help<RETURN>' for list of supported commands. Type "exit<RETURN>" to leave the HBase Shell Version 0.92.2, rUnknown, Mon Oct 8 17:15:29 PDT 2012 hbase(main):001:0> list TABLE 13/04/22 20:44:07 INFO util.NativeCodeLoader: Loaded the native-hadoop library 13/04/22 20:44:07 INFO security.JniBasedUnixGroupsMapping: Using JniBasedUnixGroupsMapping for Group resolution 13/04/22 20:44:23 ERROR zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 3 retries 13/04/22 20:44:23 ERROR zookeeper.ZooKeeperWatcher: hconnection Received unexpected KeeperException, re-throwing exception org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master at org.apache.zookeeper.KeeperException.create(KeeperException.java:99) at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1021) at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:171) at org.apache.hadoop.hbase.zookeeper.ZKUtil.watchAndCheckExists(ZKUtil.java:226) at org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker.start(ZooKeeperNodeTracker.java:82) at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.setupZookeeperTrackers(HConnectionManager.java:581) at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:570) at org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:187) at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:101) .... .... .... {noformat} Probable Solution might be as following : configure.sh on client node for hbase needs to be executed with '-Z <zookeeper nodes>', this will update base-site.xml in client

    SpringSource Issue Tracker | 4 years ago | Rajit Saha
    org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master
  2. 0

    With Serengeti M4 + patch for MapR Hbase , we found an issue that in 'mapr_hbase_client' node, /opt/mapr/hbase/hbase-0.92.2/conf/ 'hbase.zookeeper.quorum' is not populated with comma separated zookeeper nodes and 'hbase.zookeeper.property.clientPort' is not set with '5181'. These parameters are properly setup in 'mapr_hbase_regionserver' nodes. As a result of this Hbase shell is not working properly in 'mapr_hbase_client' but working well in 'mapr_hbase_regionserver' nodes. I found following error in client node. {noformat} [mapr@10 ~]$ hbase shell HBase Shell; enter 'help<RETURN>' for list of supported commands. Type "exit<RETURN>" to leave the HBase Shell Version 0.92.2, rUnknown, Mon Oct 8 17:15:29 PDT 2012 hbase(main):001:0> list TABLE 13/04/22 20:44:07 INFO util.NativeCodeLoader: Loaded the native-hadoop library 13/04/22 20:44:07 INFO security.JniBasedUnixGroupsMapping: Using JniBasedUnixGroupsMapping for Group resolution 13/04/22 20:44:23 ERROR zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 3 retries 13/04/22 20:44:23 ERROR zookeeper.ZooKeeperWatcher: hconnection Received unexpected KeeperException, re-throwing exception org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master at org.apache.zookeeper.KeeperException.create(KeeperException.java:99) at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1021) at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:171) at org.apache.hadoop.hbase.zookeeper.ZKUtil.watchAndCheckExists(ZKUtil.java:226) at org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker.start(ZooKeeperNodeTracker.java:82) at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.setupZookeeperTrackers(HConnectionManager.java:581) at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:570) at org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:187) at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:101) .... .... .... {noformat} Probable Solution might be as following : configure.sh on client node for hbase needs to be executed with '-Z <zookeeper nodes>', this will update base-site.xml in client

    SpringSource Issue Tracker | 4 years ago | Rajit Saha
    org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master
  3. 0

    Apache Nutch, Solr and HBase integration issues on Mac

    Stack Overflow | 2 years ago
    org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can't get HBase to connect to Hadoop

    Stack Overflow | 4 years ago | Triton Man
    org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master
  6. 0

    Zookeeper error connection loss exception

    Stack Overflow | 3 years ago | Amre
    org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master

  1. nasimk 3 times, last 3 weeks ago
6 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.zookeeper.KeeperException$ConnectionLossException

    KeeperErrorCode = ConnectionLoss for /hbase/master

    at org.apache.zookeeper.KeeperException.create()
  2. Zookeeper
    ZooKeeper.exists
    1. org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
    2. org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
    3. org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1021)
    3 frames
  3. HBase - Client
    HBaseAdmin.<init>
    1. org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:171)
    2. org.apache.hadoop.hbase.zookeeper.ZKUtil.watchAndCheckExists(ZKUtil.java:226)
    3. org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker.start(ZooKeeperNodeTracker.java:82)
    4. org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.setupZookeeperTrackers(HConnectionManager.java:581)
    5. org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:570)
    6. org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:187)
    7. org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:101)
    7 frames