1

で hbase を実行しましstart-hbase.shたが、ログ ファイルには次のような例外が出力されます。

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-site.xml

<configuration>
    <property>
        <name>hbase.coprocessor.region.classes</name>
        <value>com.gzhdi.coprocessor.HelloWorldEndPoint</value>
    </property>
</configuration>

そして私のhbase-env.sh

export HBASE_OPTS="-XX:+UseConcMarkSweepGC"
4

1 に答える 1