hbase无法连接到zookeeper?
我使用hbase无法连接到zookeeper?,hbase,apache-zookeeper,connectexception,Hbase,Apache Zookeeper,Connectexception,我使用start hbase.sh运行hbase,但日志文件输出异常如下: 2015-09-12 18:39:37,935 WARN [RS:0;roger-ubuntu:54809-SendThread(localhost:2181)] zookeeper.ClientCnxn: Session 0x14fc12354a40004 for server null, unexpected error, closing socket connection and attempting recon
start hbase.sh
运行hbase,但日志文件输出异常如下:
2015-09-12 18:39:37,935 WARN [RS:0;roger-ubuntu:54809-SendThread(localhost:2181)] zookeeper.ClientCnxn: Session 0x14fc12354a40004 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: 拒绝连接
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:740)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
根据异常,hbase无法连接到zookeeper,但此hbase应自行运行zookeeper
这是我的hbase站点.xml
:
<configuration>
<property>
<name>hbase.coprocessor.region.classes</name>
<value>com.gzhdi.coprocessor.HelloWorldEndPoint</value>
</property>
</configuration>
是否必须在hbase-site.xml中设置hbase.zookeeper.quorum属性?还要检查类路径设置是否正确,请签出此文档:
您正在运行独立的HBase吗?您总是可以看到运行
hbase zkcli
进行检查。如您所见,hbase site.xml
中的所有内容都在我的问题中。是的,我在独立模式下运行hbase/zkCli.sh-server localhost:2181
还返回java.net.ConnectException
exception
export HBASE_OPTS="-XX:+UseConcMarkSweepGC"