AnsweredAssumed Answered

Hbase  error:  Failed to create /hbase -- check quorum servers

Question asked by thamizh on Sep 4, 2012
Latest reply on Sep 4, 2012 by nabeel
From Map/Reducer program, when we upload records to hbase, it ended with error.
We are using Hadoop-0.20.2 with HBase-0.90.6. Any help would be appreciated.

We have set hbase.zookeeper.quorum value as below on hbase-site.xml.

    <property>
        <name>hbase.zookeeper.quorum</name>
        <value>hdp01,hdp02,hdp03</value>
    </property>

Userlogs:

    2012-09-05 05:48:23,013 INFO org.apache.hadoop.mapred.Child: JVM: jvm_201208231646_0207_m_1526450087 pid: 5637
     2012-09-05 05:48:23,131 INFO org.apache.hadoop.util.NativeCodeLoader: Loaded the native-hadoop library
     2012-09-05 05:48:23,248 INFO org.apache.hadoop.mapred.Child: Starting task attempt_201208231646_0207_m_000000_0
     2012-09-05 05:48:23,248 INFO org.apache.hadoop.metrics.jvm.JvmMetrics: Initializing JVM Metrics with processName=MAP, sessionId=
     2012-09-05 05:48:23,289 INFO org.apache.hadoop.mapreduce.util.ProcessTree: setsid exited with exit code 0
     2012-09-05 05:48:23,294 WARN org.apache.hadoop.mapreduce.util.ProcfsBasedProcessTree: /proc//status does not have information about swap space used(VmSwap). Can not track swap usage of a task.
     2012-09-05 05:48:23,295 INFO org.apache.hadoop.mapred.Task: Using ResourceCalculatorPlugin :org.apache.hadoop.mapreduce.util.LinuxResourceCalculatorPlugin@26ae533a
     2012-09-05 05:48:23,942 WARN org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper: Failed to create /hbase -- check quorum servers, currently=localhost:2181 org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase 
      at org.apache.zookeeper.KeeperException.create(KeeperException.java:90) 
      at org.apache.zookeeper.KeeperException.create(KeeperException.java:42) 
      at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:809) 
      at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:837) 
      at org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.ensureExists(ZooKeeperWrapper.java:405) 
      at org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.ensureParentExists(ZooKeeperWrapper.java:432) 
      at org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.checkOutOfSafeMode(ZooKeeperWrapper.java:545) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRootRegion(HConnectionManager.java:964) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:625)
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:601) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:670) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:630) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:601) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:670) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:634) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:601) 
      at org.apache.hadoop.hbase.client.HTable.(HTable.java:134) 
      at org.apache.hadoop.hbase.client.HTable.(HTable.java:112) 
      at org.apache.hadoop.hbase.mapreduce.TableOutputFormat.getRecordWriter(TableOutputFormat.java:116) 
      at org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.(MapTask.java:542) 
      at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:657) 
      at org.apache.hadoop.mapred.MapTask.run(MapTask.java:334) 
      at org.apache.hadoop.mapred.Child$4.run(Child.java:270) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:396) 
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1109) 
      at org.apache.hadoop.mapred.Child.main(Child.java:264)
     2012-09-05 05:48:25,636 WARN org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper: Failed to create /hbase -- check quorum servers, currently=localhost:2181 org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase 
      at org.apache.zookeeper.KeeperException.create(KeeperException.java:90) 
      at org.apache.zookeeper.KeeperException.create(KeeperException.java:42) 
      at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:809) 
      at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:837) 
      at org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.ensureExists(ZooKeeperWrapper.java:405) 
      at org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.ensureParentExists(ZooKeeperWrapper.java:432) 
      at org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.checkOutOfSafeMode(ZooKeeperWrapper.java:545) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRootRegion(HConnectionManager.java:964) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:625) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:601) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:670) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:630) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:601) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:670) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:634) 
      at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:601) 
      at org.apache.hadoop.hbase.client.HTable.(HTable.java:134) 
      at org.apache.hadoop.hbase.client.HTable.(HTable.java:112) 
      at org.apache.hadoop.hbase.mapreduce.TableOutputFormat.getRecordWriter(TableOutputFormat.java:116) 
      at org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.(MapTask.java:542) 
      at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:657) 
      at org.apache.hadoop.mapred.MapTask.run(MapTask.java:334) 
      at org.apache.hadoop.mapred.Child$4.run(Child.java:270) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:396) 
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1109) 
      at org.apache.hadoop.mapred.Child.main(Child.java:264)

Outcomes