[HBase] ERROR:org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
- mango@master:~/hadoop-1.1.2//bin$ hbase shell
- HBase Shell; enter 'help<RETURN>' for list of supported commands.
- Type "exit<RETURN>" to leave the HBase Shell
- Version 0.94.2, r1395367, Sun Oct 7 19:11:01 UTC 2016
- hbase(main):001:0> status
- 3 servers, 0 dead, 0.0000 average load
- hbase(main):002:0> create 't1','f1'
- ERROR: org.apache.hadoop.hbase.PleaseHoldException: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
- Here is some help for this command:
- Create table; pass table name, a dictionary of specifications per
- column family, and optionally a dictionary of table configuration.
- Dictionaries are described below in the GENERAL NOTES section.
- Examples:
- hbase> create 't1', {NAME => 'f1', VERSIONS => 5}
- hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'}
- hbase> # The above in shorthand would be the following:
- hbase> create 't1', 'f1', 'f2', 'f3'
- hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true}
- hbase> create 't1', 'f1', {SPLITS => ['10', '20', '30', '40']}
- hbase> create 't1', 'f1', {SPLITS_FILE => 'splits.txt'}
- hbase> # Optionally pre-split the table into NUMREGIONS, using
- hbase> # SPLITALGO ("HexStringSplit", "UniformSplit" or classname)
- hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit'}
执行stop-hbase.sh 处于无限等待状态
- mango@master:~/hadoop-1.0.4/hbase-0.94.2/bin$ ./st
- start-hbase.sh stop-hbase.sh
- mango@master:~/hadoop-1.0.4/hbase-0.94.2/bin$ ./stop-hbase.sh
- stopping hbase..............................................
查看日志
- 2013-01-15 15:37:45,377 INFO org.apache.hadoop.ipc.HBaseServer: Starting IPC Server listener on 60000
- 2013-01-15 15:37:45,420 INFO org.apache.hadoop.hbase.ipc.HBaseRpcMetrics: Initializing RPC Metrics with hostName=HMaster, port=60000
- 2013-01-15 15:37:46,074 INFO org.apache.zookeeper.ZooKeeper: Client environment:zookeeper.version=3.4.3-1240972, built on 02/06/2012 10:48 GMT
- 2013-01-15 15:37:46,075 INFO org.apache.zookeeper.ZooKeeper: Client environment:host.name=master
- 2013-01-15 15:37:46,075 INFO org.apache.zookeeper.ZooKeeper: Client environment:java.version=1.6.0_13
- 2013-01-15 15:37:46,075 INFO org.apache.zookeeper.ZooKeeper: Client environment:java.vendor=Sun Microsystems Inc.
- 2013-01-15 15:37:46,075 INFO org.apache.zookeeper.ZooKeeper: Client environment:java.home=/home/mango/jdk1.6.0_13/jre
查看 master:60010 发现hbase.rootdir 没有使用HDFS,典型的配置错误啊~~
Attributes
Attribute Name | Value | Description |
---|---|---|
HBase Version | 0.94.2, r1395367 | HBase version and revision |
HBase Compiled | Sun Oct 7 19:11:01 UTC 2012, jenkins | When HBase version was compiled and by whom |
Hadoop Version | 1.0.4, r1393290 | Hadoop version and revision |
Hadoop Compiled | Wed Oct 3 05:13:58 UTC 2012, hortonfo | When Hadoop version was compiled and by whom |
HBase Root Directory | file:/tmp/hbase-mango/hbase | Location of HBase home directory |
HBase Cluster ID | 2a63a79a-3ec9-48d1-b840-d7635c6fb304 | Unique identifier generated for each HBase cluster |
Load average | 2.67 | Average number of regions per regionserver. Naive computation. |
Zookeeper Quorum | slave1:2181,master:2181,slave2:2181 | Addresses of all registered ZK servers. For more, see zk dump. |
Coprocessors | [] | Coprocessors currently loaded loaded by the master |
HMaster Start Time | Tue Jan 15 16:17:44 CST 2013 | Date stamp of when this HMaster was started |
HMaster Active Time | Tue Jan 15 16:17:44 CST 2013 | Date stamp of when this HMaster became active |
hbase.rootdir 参数写成了 hbase.root.dir
hbase-site.xml如下:
- <configuration>
- <property>
- <name><span style="color: rgb(255, 0, 0);">hbase.root.dir</span></name>
- <value>hdfs://master:9000/hbase</value>
- </property>
- <property>
- <name>hbase.cluster.distributed</name>
- <value>true</value>
- </property>
- <property>
- <name>hbase.master</name>
- <value>hdfs://master:<span style="color: rgb(255, 0, 0);">6000</span></value>
- </property>
- <property>
- <name>hbase.zookeeper.quorum</name>
- <value>master,slave1,slave2</value>
- </property>
- </configuration>
修改hbase-site.xml后,重启集群,一切恢复正常。