HBase shell 启动出错 org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = Con

一般发生在长期使用hbase,后面再安装之后直接使用hbase shell 想要进入hbase界面,却没有启动start-hbase.sh而导致的。

[[email protected] local]# hbase shell

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [jar:file:/usr/local/hbase/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Found binding in [jar:file:/usr/local/hadoop2/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

2015-05-17 23:11:37,482 ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts

2015-05-17 23:11:37,484 WARN  [main] zookeeper.ZKUtil: hconnection-0x1623e7c40x0, quorum=master: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(KeeperException.java:99)

at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)

at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1045)

at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:222)

at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:481)

at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)

at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:86)

at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.retrieveClusterId(ConnectionManager.java:833)

at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(ConnectionManager.java:623)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:238)

at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:218)

at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:119)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:450)

at org.jruby.javasupport.JavaMethod.invokeStaticDirect(JavaMethod.java:362)

at org.jruby.java.invokers.StaticMethodInvoker.call(StaticMethodInvoker.java:58)

at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312)

at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)

at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)

at org.jruby.ast.InstAsgnNode.interpret(InstAsgnNode.java:95)

at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)

at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)

at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)

at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)

at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:191)

at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)

at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144)

at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)

at org.jruby.RubyClass.newInstance(RubyClass.java:822)

at org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535)

at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock.call(JavaMethod.java:249)

at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)

at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)

at usr.local.hbase.bin.hirb.__file__(/usr/local/hbase/bin/hirb.rb:118)

at usr.local.hbase.bin.hirb.load(/usr/local/hbase/bin/hirb.rb)

at org.jruby.Ruby.runScript(Ruby.java:697)

at org.jruby.Ruby.runScript(Ruby.java:690)

at org.jruby.Ruby.runNormally(Ruby.java:597)

at org.jruby.Ruby.runFromMain(Ruby.java:446)

at org.jruby.Main.doRunFromMain(Main.java:369)

at org.jruby.Main.internalRun(Main.java:258)

at org.jruby.Main.run(Main.java:224)

at org.jruby.Main.run(Main.java:208)

at org.jruby.Main.main(Main.java:188)

2015-05-17 23:11:37,492 ERROR [main] zookeeper.ZooKeeperWatcher: hconnection-0x1623e7c40x0, quorum=master:2181, baseZNode=/hbase Received unexpected KeeperException, re-throwing exception

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

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:1045)

at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:222)

at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:481)

at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)

at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:86)

at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.retrieveClusterId(ConnectionManager.java:833)

at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(ConnectionManager.java:623)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:238)

at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:218)

at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:119)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:450)

at org.jruby.javasupport.JavaMethod.invokeStaticDirect(JavaMethod.java:362)

at org.jruby.java.invokers.StaticMethodInvoker.call(StaticMethodInvoker.java:58)

at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312)

at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)

at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)

at org.jruby.ast.InstAsgnNode.interpret(InstAsgnNode.java:95)

at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)

at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)

at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)

at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)

at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:191)

at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)

at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144)

at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)

at org.jruby.RubyClass.newInstance(RubyClass.java:822)

at org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535)

at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock.call(JavaMethod.java:249)

at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)

at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)

at usr.local.hbase.bin.hirb.__file__(/usr/local/hbase/bin/hirb.rb:118)

at usr.local.hbase.bin.hirb.load(/usr/local/hbase/bin/hirb.rb)

at org.jruby.Ruby.runScript(Ruby.java:697)

at org.jruby.Ruby.runScript(Ruby.java:690)

at org.jruby.Ruby.runNormally(Ruby.java:597)

at org.jruby.Ruby.runFromMain(Ruby.java:446)

at org.jruby.Main.doRunFromMain(Main.java:369)

at org.jruby.Main.internalRun(Main.java:258)

at org.jruby.Main.run(Main.java:224)

at org.jruby.Main.run(Main.java:208)

at org.jruby.Main.main(Main.java:188)

HBase Shell; enter ‘help<RETURN>‘ for list of supported commands.

Type "exit<RETURN>" to leave the HBase Shell

Version 1.0.1, r66a93c09df3b12ff7b86c39bc8475c60e15af82d, Fri Apr 17 22:14:06 PDT 2015

原因 没有启动HBase 需要运行 start-hbase.sh 才可以。

时间: 2024-10-04 08:15:17

HBase shell 启动出错 org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = Con的相关文章

alimama open source mdrill启动后访问蓝鲸任务时出错:Caused by:org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss

启动后,访问:http://IP:1107/mdrill.jsp  蓝鲸任务 即http:/IP:1107/topology.jsp 页面出现如下错误: HTTP ERROR 500 Problem accessing /topology.jsp. Reason: KeeperErrorCode = ConnectionLoss Caused by: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperError

zk- org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth for

项目服务都是发布在dubbo+zookeeper上 昨天项目报这个错. org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth for 查了一下,是说权限不对.但是项目里连接dubbo并没有密码. 启动 zkCli.sh 看了一下根目录, 发现看其他目录都好好的,可以查看 看 /dubbo 这个目录 就查看不了,权限有问题. /dubbo 这个目录就是项目发布服务的目录. Authenticat

cygwin org/apache/zookeeper/KeeperException

以前用cdh3-0.20的hbase,在windows下面直接启动就行了,但是最近安装0.94以上的,就不行了. 报标题的错误,搜遍网络,几乎都是要加HBASE_CLASSPATH的,后来看老外的文章才发现了,就是: 惹的货,导致zookeeper没被识别.坑爹啊 http://stackoverflow.com/questions/10936924/hbase-0-92-standalone-on-windows-with-cygwin/19981264#19981264 http://sta

Zookeeper异常ConnectionLossException解决

今天安装了CentOS虚拟机,然后写了一个Zookeeper测试程序,这个测试程序连接到运行在本机的Zookeeper服务能够正常运行. 但是当连接到远端的CentOS虚拟机上的Zookeeper服务之后,出现了下面异常: Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /test a

Eclipse连接HBase 报错:org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

在eclipse中连接到HBase报错org.apache.hadoop.hbase.PleaseHoldException: Master is initializing,搜索了好久,网上其它人说的解决办法对我都没用: - 做时间同步 - hbase-site.xml中参数hbase.rootdir使用hdfs协议 - 关闭防火墙 最终,参考这个论坛帖子:http://www.aboutyun.com/thread-20600-1-1.html(Hbase shell 启动报错,使用statu

hbase shell 命令

1.首先要打开hbase,使用jps查看进程 jps是java进程状态工具,它会返回进程ID和服务名称 [email protected]:~/Apache/hbase-0.94.15-security$ jps 3082 NameNode 6245 HRegionServer 3493 JobTracker 6064 HMaster 5999 HQuorumPeer 3638 TaskTracker 3259 DataNode 3413 SecondaryNameNode 6320 Jps 2

Download and Install Apache Zookeeper on Ubuntu

http://www.techburps.com/misc/download-and-install-apache-zookeepr/36 In previous article of this Big-Data tutorials series we have seen, What is Apache Zookeeper, Why do we need it and How it works ?. In this particular article we will see how to do

hbase无法启动,The node /hbase is not in ZooKeeper

问题详细描述如下: 2016-12-09 15:10:39,160 ERROR [org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation] - The node /hbase is not in ZooKeeper. It should have been written by the master. Check the value configured in 'zookeeper.znode.pare

Apache ZooKeeper 服务启动源码解释

转载:https://www.ibm.com/developerworks/cn/opensource/os-cn-zookeeper-code/ 本文首先讲解了 Apache ZooKeeper 服务启动的三种方式,即 Standalone.伪分布式.分布式.然后针对分布式模式启动步骤进行逐步介绍,从 Shell 脚本开始,一直介绍到服务完全启动过程中所有的执行过程.通过本文读者基本可以掌握 ZooKeeper 如何启动.启动过程中做了哪些工作. 分布式系统从根本上来说就是不同节点上的进程并发