hbase-0.94.0启动错误

时间:2013-01-02 09:00:31

标签: hadoop hbase

今天,我在启动hbase时遇到了问题,  错误如下:

1.in hbase-localhost-zookeeper-chaobin.log

2013-01-02 16:05:26,406 INFO org.apache.zookeeper.server.NIOServerCnxnFactory: Accepted socket connection from /127.0.0.1:3170
2013-01-02 16:05:26,406 INFO org.apache.zookeeper.server.ZooKeeperServer: Refusing session request for client /127.0.0.1:3170 as it has seen zxid 0xc our last zxid is 0x0 client must try another server
2013-01-02 16:05:26,406 INFO org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection for client /127.0.0.1:3170 (no session established for client)
2013-01-02 16:05:27,984 INFO org.apache.zookeeper.server.NIOServerCnxnFactory: Accepted socket connection from /127.0.0.1:3171
2013-01-02 16:05:27,984 INFO org.apache.zookeeper.server.ZooKeeperServer: Refusing session request for client /127.0.0.1:3171 as it has seen zxid 0xc our last zxid is 0x0 client must try another server
2013-01-02 16:05:27,984 INFO org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection for client /127.0.0.1:3171 (no session established for client)
2013-01-02 16:05:29,796 INFO org.apache.zookeeper.server.NIOServerCnxnFactory: Accepted socket connection from /127.0.0.1:3172
2013-01-02 16:05:29,796 INFO org.apache.zookeeper.server.ZooKeeperServer: Refusing session request for client /127.0.0.1:3172 as it has seen zxid 0xc our last zxid is 0x0 client must try another server
2013-01-02 16:05:29,796 INFO org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection for client /127.0.0.1:3172 (no session established for client)
2013-01-02 16:05:31,750 INFO org.apache.zookeeper.server.NIOServerCnxnFactory: Accepted socket connection from /127.0.0.1:3173
2013-01-02 16:05:31,750 INFO org.apache.zookeeper.server.ZooKeeperServer: Refusing session request for client /127.0.0.1:3173 as it has seen zxid 0xc our last zxid is 0x0 client must try another server
2013-01-02 16:05:31,750 INFO org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection for client /127.0.0.1:3173 (no session established for client)

2.in hbase-localhost-master-chaobin.out

java.io.IOException: Waiting for shutdown of standalone server
    at org.apache.hadoop.hbase.zookeeper.MiniZooKeeperCluster.shutdown(MiniZooKeeperCluster.java:224)
    at org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMaster.run(HMasterCommandLine.java:223)
    at java.lang.Thread.run(Thread.java:619)

3.in hbase-localhost-regionserver-chaobin.log

2013-01-02 16:02:10,375 INFO org.apache.hadoop.hbase.util.VersionInfo: Subversion https://svn.apache.org/repos/asf/hbase/branches/0.94 -r 1332822
2013-01-02 16:02:10,375 INFO org.apache.hadoop.hbase.util.VersionInfo: Compiled by jenkins on Tue May  1 21:43:54 UTC 2012
2013-01-02 16:02:10,531 WARN org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine: Not starting a distinct region server because hbase.cluster.distributed is false

1 个答案:

答案 0 :(得分:0)

正如您可以看到源代码一样,waitForServerDown中的MiniZooKeeperCluster方法会引发此类异常。这是因为在规定的机器上为zookeeper服务器分配的端口被某些其他应用程序使用,或者它根本不可用于携带流。尝试将端口更改为其他端口,或检查在该端口上运行的应用程序。

如果您使用的是linux,请在替换zookeeper端口的终端中键入netstat -tulp|grep port-no,以查找是否正在使用其他程序。