ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts

启动hbase shell的时候,出了一些小错误,但还是可以进入shell的,请问下面的error是什么原因造成的呀?
 [root@node1 master]# sh start_hbase2.sh
JMX enabled by default
Using config: /etc/zookeeper/conf/zoo.cfg
Starting zookeeper ... already running as process 1837.
starting master, logging to /var/log/hbase/hbase-hbase-master-node1.out
Started HBase master daemon (hbase-master):                [  OK  ]
Starting Hadoop HBase regionserver daemon: starting regionserver, logging to /var/log/hbase/hbase-hbase-regionserver-node1.out
hbase-regionserver.
[root@node1 master]# hbase shell
2016-01-26 01:24:16,162 INFO  [main] Configuration.deprecation: hadoop.native.lib is deprecated. Instead, use io.native.lib.available
2016-01-26 01:24:45,479 ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts
2016-01-26 01:24:45,479 WARN  [main] zookeeper.ZKUtil: hconnection-0x1aa5c9d0x0, quorum=-1:2181, baseZNode=/hbase Unable to set watcher on znode (/hbase/hbaseid)
org.apache.zookeeper.KeeperException$OperationTimeoutException: KeeperErrorCode = OperationTimeout
    at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.checkZk(RecoverableZooKeeper.java:145)
    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:850)
    at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(ConnectionManager.java:635)
    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.lib.hbase.bin.$_dot_dot_.bin.hirb.__file__(/usr/lib/hbase/bin/../bin/hirb.rb:131)
    at usr.lib.hbase.bin.$_dot_dot_.bin.hirb.load(/usr/lib/hbase/bin/../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)
2016-01-26 01:24:45,482 ERROR [main] zookeeper.ZooKeeperWatcher: hconnection-0x1aa5c9d0x0, quorum=-1:2181, baseZNode=/hbase Received unexpected KeeperException, re-throwing exception
org.apache.zookeeper.KeeperException$OperationTimeoutException: KeeperErrorCode = OperationTimeout
    at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.checkZk(RecoverableZooKeeper.java:145)
    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:850)
    at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(ConnectionManager.java:635)
    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.lib.hbase.bin.$_dot_dot_.bin.hirb.__file__(/usr/lib/hbase/bin/../bin/hirb.rb:131)
    at usr.lib.hbase.bin.$_dot_dot_.bin.hirb.load(/usr/lib/hbase/bin/../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.0-cdh5.4.8, rUnknown, Thu Oct 15 08:59:42 PDT 2015

hbase(main):001:0> 

fish - Hadooper

赞同来自:

从zookeeper中读取clusterId出错。 HBase集群启动了么?hbase shell跟HBase集群连接的是否是同一个zookeeper服务?

juanhu

赞同来自:

hbase集群已经启起来了。   怎么看hbase shell跟HBase集群连接的是否是同一个zookeeper服务?

fish - Hadooper

赞同来自:

执行hbase shell的机器是集群中的一台还是独立的客户端?其中hbase-site.xml的配置项hbase.zookeeper.quorum是否正确?

juanhu

赞同来自:

执行hbase shell的机器是集群中的一台.   hbase.zookeeper.quorum居然是-1,我把它改了,现在报这个错: [root@node1 /]# hbase shell 2016-01-26 02:28:43,859 INFO  [main] Configuration.deprecation: hadoop.native.lib is deprecated. Instead, use io.native.lib.available 2016-01-26 02:28:47,650 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:28:48,761 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:28:49,863 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:28:50,965 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:28:52,068 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:28:53,172 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:28:54,275 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:28:55,376 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:28:56,478 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:28:57,579 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:28:58,682 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:28:59,783 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:29:00,885 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:29:01,986 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:29:03,089 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:29:04,190 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:29:04,291 ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts 2016-01-26 02:29:04,292 WARN  [main] zookeeper.ZKUtil: hconnection-0x1aa5c9d0x0, quorum=1: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:1248)     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:850)     at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(ConnectionManager.java:635)     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.lib.hbase.bin.$_dot_dot_.bin.hirb.__file__(/usr/lib/hbase/bin/../bin/hirb.rb:131)     at usr.lib.hbase.bin.$_dot_dot_.bin.hirb.load(/usr/lib/hbase/bin/../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) 2016-01-26 02:29:04,295 ERROR [main] zookeeper.ZooKeeperWatcher: hconnection-0x1aa5c9d0x0, quorum=1: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:1248)     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:850)     at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(ConnectionManager.java:635)     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.lib.hbase.bin.$_dot_dot_.bin.hirb.__file__(/usr/lib/hbase/bin/../bin/hirb.rb:131)     at usr.lib.hbase.bin.$_dot_dot_.bin.hirb.load(/usr/lib/hbase/bin/../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.0-cdh5.4.8, rUnknown, Thu Oct 15 08:59:42 PDT 2015 hbase(main):001:0> 2016-01-26 02:29:05,293 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 2016-01-26 02:29:06,396 ERROR [main-SendThread(0.0.0.1:2181)] zookeeper.ClientCnxnSocketNIO: Unable to open socket to 0.0.0.1/0.0.0.1:2181 [root@node1 /]#   

fish - Hadooper

赞同来自:

hbase.zookeeper.quorum得设置成正确的zookeeper机器(集群)的地址,你现在设置成什么了?

juanhu

赞同来自:

哈,我写错了,改成集群地址就好了。谢谢。

jzyhapp

赞同来自:

我也出现这个问题了 master能执行hbase shell 但是client出现这问题

要回复问题请先登录注册