util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 2015-05-14 01:14:43,982 ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts 2015-05-14 01:14:43,983 WARN [main] zookeeper.ZKUtil: hconnection-0x4d980c0x0, quorum=localhost:2181, baseZNode=/hbase Unable to set watcher on znode (/hbase/hbaseid) org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid

hive-user | Ibrar Ahmed | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Re: Hive/Hbase Integration issue

    hive-user | 2 years ago | Ibrar Ahmed
    util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 2015-05-14 01:14:43,982 ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts 2015-05-14 01:14:43,983 WARN [main] zookeeper.ZKUtil: hconnection-0x4d980c0x0, quorum=localhost:2181, baseZNode=/hbase Unable to set watcher on znode (/hbase/hbaseid) org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
  2. 0

    HBase error while the installation on the VM

    Google Groups | 10 months ago | Alexandr Porunov
    util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 2016-07-05 22:25:54,791 ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts 2016-07-05 22:25:54,793 WARN [main] zookeeper.ZKUtil: hconnection-0x205765570x0, quorum=localhost:2181, baseZNode=/hbase Unable to set watcher on znode (/hbase/hbaseid) org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid

    Root Cause Analysis

    1. util.NativeCodeLoader

      Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 2015-05-14 01:14:43,982 ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts 2015-05-14 01:14:43,983 WARN [main] zookeeper.ZKUtil: hconnection-0x4d980c0x0, quorum=localhost:2181, baseZNode=/hbase Unable to set watcher on znode (/hbase/hbaseid) org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid

      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:1045)
      3 frames
    3. HBase - Client
      ConnectionManager$HConnectionImplementation.<init>
      1. org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:222)
      2. org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:481)
      3. org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)
      4. org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:86)
      5. org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.retrieveClusterId(ConnectionManager.java:833)
      6. org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(ConnectionManager.java:623)
      6 frames
    4. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      4 frames
    5. HBase - Client
      ConnectionFactory.createConnection
      1. org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:238)
      2. org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:218)
      3. org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:119)
      3 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    7. JRuby Main Maven Artifact
      RubyClass.newInstance
      1. org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:450)
      2. org.jruby.javasupport.JavaMethod.invokeStaticDirect(JavaMethod.java:362)
      3. org.jruby.java.invokers.StaticMethodInvoker.call(StaticMethodInvoker.java:58)
      4. org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312)
      5. org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)
      6. org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
      7. org.jruby.ast.InstAsgnNode.interpret(InstAsgnNode.java:95)
      8. org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
      9. org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
      10. org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
      11. org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
      12. org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:191)
      13. org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
      14. org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144)
      15. org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
      16. org.jruby.RubyClass.newInstance(RubyClass.java:822)
      16 frames