Error:: Master is initializing

时间:2025-04-12 15:21:42

今天做了以下HBase的相关安装和配置,启动HBase没有问题,但是使用bin/hbase shell 命令转换到shell下时,使用比如命令,list.、create 'table','col' 等等都会出错,下面贴的是log里面的error部分:

012-08-26 19:19:36,389 WARN : Failed assignment of -ROOT-,,0.70236052 to ,37482,1345979971214, trying to assign elsewhere instead; retry=0

: Failed setting up proxy interface to /127.0.0.1:37482 after attempts=1
at (:242)
at $(:1284)
at $(:1240)
at $(:1227)
at (:544)
at (:477)
at (:1618)
at (:1352)
at (:1327)
at (:1322)
at (:2158)
at (:601)
at (:525)
at (:343)
at $(:220)
at (:662)
Caused by: : Connection refused
at (Native Method)
at (:599)
at (:206)
at (:489)
at $(:328)
at $(:362)
at (:1045)
at (:897)
at $(:150)
at $(Unknown Source)
at (:183)
at (:303)
at (:280)
at (:332)
at (:236)
... 15 more
2012-08-26 19:19:36,392 WARN : Unable to find a viable location to assign region -ROOT-,,0.70236052
2012-08-26 19:19:45,197 INFO : Regions in transition timed out: -ROOT-,,0.70236052 state=OFFLINE, ts=1345979976392, server=null
2012-08-26 19:19:45,198 INFO : Region has been OFFLINE for too long, reassigning -ROOT-,,0.70236052 to a random server
2012-08-26 19:19:45,206 DEBUG : master:32879-0x13962a871330000 Creating (or updating) unassigned node for 70236052 with OFFLINE state
2012-08-26 19:19:45,231 DEBUG : Handling transition=M_ZK_REGION_OFFLINE, server=fansy-Lenovo-G450,32879,1345979970648, region=70236052/-ROOT-
2012-08-26 19:19:45,232 DEBUG : Found an existing plan for -ROOT-,,0.70236052 destination server is ,37482,1345979971214
2012-08-26 19:19:45,233 DEBUG : 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=,37482,1345979971214; 1 (online=1, available=1) available servers
2012-08-26 19:19:45,233 DEBUG : Assigning region -ROOT-,,0.70236052 to ,37482,1345979971214
2012-08-26 19:19:45,233 DEBUG : New connection to ,37482,1345979971214
2012-08-26 19:19:45,233 INFO : Server at /127.0.0.1:37482 could not be reached after 1 tries, giving up.
2012-08-26 19:19:45,233 WARN : Failed assignment of -ROOT-,,0.70236052 to ,37482,1345979971214, trying to assign elsewhere instead; retry=0
: Failed setting up proxy interface to /127.0.0.1:37482 after attempts=1
at (:242)
at $(:1284)
at $(:1240)
at $(:1227)
at (:544)
at (:477)
at (:1618)
at (:1352)
at (:44)
at $(:303)
at (:138)
at $(:886)
at $(:908)
at (:662)
Caused by: : Connection refused
at (Native Method)
at (:599)
at (:206)
at (:489)
at $(:328)
at $(:362)
at (:1045)
at (:897)
at $(:150)
at $(Unknown Source)
at (:183)
at (:303)
at (:280)
at (:332)
at (:236)

... 13 more


虽然看到了log文档里面的提示,但是由于是刚开始接触HBase,所以还是不知道如何下手。还是上网找各种资源,最后看到官方文档上面说,如果系统是Ubuntu的话,要注意

/etc/hosts里面的127.0.0.1是否是127.0.1.1,如果是的话,把他改过来就可以了。

虽然网上大家的版本各种各样,但是如果真的要学的话,还是官网上面的资料齐全点。