org.apache.zookeeper.KeeperException$ConnectionLossException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by Rajit Saha,
  • 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
    via by Rajit Saha,
  • Can&#39;t get HBase to connect to Hadoop
    via Stack Overflow by Triton Man
    ,
  • Zookeeper error connection loss exception
    via Stack Overflow by Amre
    ,
  • Never finishes launching
    via GitHub by yepher
    ,
  • hbase shell jruby error
    via Stack Overflow by Ali19033
    ,
    • 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)

    Users with the same issue

    nasimknasimk
    82 times, last one,
    batwalrus76batwalrus76
    54 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    chenjunjunchenjunjun
    201 times, last one,
    fervidnerdfervidnerd
    1 times, last one,
    13 more bugmates