2013-01-02 66 views
2

今天,我開始HBase的時候遇到了問題, 錯誤如下:的HBase-0.94.0啓動錯誤

1.in HBase的,本地主機,動物園管理員,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的-本地主機 - 主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的-本地主機 - 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 
+0

可以請你分享一些更多的信息,如你的配置參數,類型的設置(僞,分佈式)等? – Tariq

回答

0

正如你可以看到形成源極,在所述MiniZooKeeperCluster方法waitForServerDown拋出這樣和異常。這是因爲在規定的機器上爲動物園管理員服務器分配的端口被其他應用程序使用,或者它根本不可用於傳送流。嘗試將端口更改爲其他端口,或者檢查在該端口上運行的應用程序。

如果您使用的是linux,請在終端中鍵入netstat -tulp|grep port-no替換zookeeper端口,以查找其是否被其他程序使用。