去看了日志文件
2011-11-01 23:44:06,998 INFO org.apache.zookeeper.server.PrepRequestProcessor: Got user-level KeeperException when processing sessionid:0x1336304bc350000 type:delete cxid:0x15 zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a Error Path:/hbase/root-region-server Error:KeeperErrorCode = NoNode for /hbase/root-region-server
2011-11-01 23:44:07,304 DEBUG org.apache.hadoop.hbase.zookeeper.ZKAssign: master:33242-0x1336304bc350000 Creating (or updating) unassigned node for 70236052 with OFFLINE state
2011-11-01 23:44:07,877 DEBUG org.apache.hadoop.hbase.master.AssignmentManager: No previous transition plan was found (or we are ignoring an existing plan) for -ROOT-,,0.70236052 so generated a random one; hri=-ROOT-,,0.70236052, src=, dest=localhost,39907,1320216219235; 1 (online=1, exclude=null) available servers
2011-11-01 23:44:07,878 DEBUG org.apache.hadoop.hbase.master.AssignmentManager: Assigning region -ROOT-,,0.70236052 to localhost,39907,1320216219235
2011-11-01 23:44:07,878 DEBUG org.apache.hadoop.hbase.master.ServerManager: New connection to localhost,39907,1320216219235
2011-11-01 23:44:08,180 INFO org.apache.hadoop.ipc.HbaseRPC: Server at /127.0.0.1:39907 could not be reached after 1 tries, giving up.
2011-11-01 23:44:08,183 WARN org.apache.hadoop.hbase.master.AssignmentManager: Failed assignment of -ROOT-,,0.70236052 to serverName=localhost,39907,1320216219235, load=(requests=0, regions=0, usedHeap=0, maxHeap=0), trying to assign elsewhere instead; retry=0
org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed setting up proxy interface org.apache.hadoop.hbase.ipc.HRegionInterface to /127.0.0.1:39907 after attempts=1
at org.apache.hadoop.hbase.ipc.HBaseRPC.waitForProxy(HBaseRPC.java:355)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getHRegionConnection(HConnectionManager.java:969)
at org.apache.hadoop.hbase.master.ServerManager.getServerConnection(ServerManager.java:620)
at org.apache.hadoop.hbase.master.ServerManager.sendRegionOpen(ServerManager.java:555)
at org.apache.hadoop.hbase.master.AssignmentManager.assign(AssignmentManager.java:1043)
at org.apache.hadoop.hbase.master.AssignmentManager.assign(AssignmentManager.java:858)
at org.apache.hadoop.hbase.master.AssignmentManager.assign(AssignmentManager.java:838)
at org.apache.hadoop.hbase.master.AssignmentManager.assignRoot(AssignmentManager.java:1304)
at org.apache.hadoop.hbase.master.HMaster.assignRootAndMeta(HMaster.java:431)
at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:388)
at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:282)
at org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMaster.run(HMasterCommandLine.java:193)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:406)
at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupIOstreams(HBaseClient.java:328)
at org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:883)
at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:750)
at org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:257)
at $Proxy9.getProtocolVersion(Unknown Source)
at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:419)
at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:393)
at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:444)
at org.apache.hadoop.hbase.ipc.HBaseRPC.waitForProxy(HBaseRPC.java:349)
... 12 more
2011-11-01 23:44:08,494 WARN org.apache.hadoop.hbase.master.AssignmentManager: Unable to find a viable location to assign region -ROOT-,,0.70236052
重点搜索了一下最开始的Error:KeeperErrorCode = NoNode for /hbase/root-region-server
找到一篇:http://mail-archives.apache.org/mod_mbox/hbase-user/201106.mbox/%3CBANLkTimCgHr-1MDtdo3NETZMrQXkBJy=dA@mail.gmail.com%3E
里面提到可能因为localhost和机器名不一样,且映射到不丗IP(我的是localhost->127.0.0.1,ubuntu->127.0.1.1),将两者映射至相同IP(127.0.0.1)就可以了,试了一下,在改动后可以在SHELL里建表了,算是成功启动了
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。