[HBase] ERROR:org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

[HBase] ERROR:org.apache.hadoop.hbase.PleaseHoldException: Master is initializing            

  1. mango@master:~/hadoop-1.1.2//bin$ hbase shell  
  2. HBase Shell; enter 'help<RETURN>' for list of supported commands.  
  3. Type "exit<RETURN>" to leave the HBase Shell  
  4. Version 0.94.2, r1395367, Sun Oct  7 19:11:01 UTC 2016  
  5.   
  6. hbase(main):001:0> status  
  7. 3 servers, 0 dead, 0.0000 average load  
  8.   
  9. hbase(main):002:0> create 't1','f1'  
  10.   
  11. ERROR: org.apache.hadoop.hbase.PleaseHoldException: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing  
  12.   
  13. Here is some help for this command:  
  14. Create table; pass table name, a dictionary of specifications per  
  15. column family, and optionally a dictionary of table configuration.  
  16. Dictionaries are described below in the GENERAL NOTES section.  
  17. Examples:  
  18.   
  19.   hbase> create 't1', {NAME => 'f1', VERSIONS => 5}  
  20.   hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'}  
  21.   hbase> # The above in shorthand would be the following:  
  22.   hbase> create 't1', 'f1', 'f2', 'f3'  
  23.   hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true}  
  24.   hbase> create 't1', 'f1', {SPLITS => ['10', '20', '30', '40']}  
  25.   hbase> create 't1', 'f1', {SPLITS_FILE => 'splits.txt'}  
  26.   hbase> # Optionally pre-split the table into NUMREGIONS, using  
  27.   hbase> # SPLITALGO ("HexStringSplit", "UniformSplit" or classname)  
  28.   hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit'}  

执行stop-hbase.sh 处于无限等待状态

[plain] view plaincopyprint?
  1. mango@master:~/hadoop-1.0.4/hbase-0.94.2/bin$ ./st  
  2. start-hbase.sh  stop-hbase.sh     
  3. mango@master:~/hadoop-1.0.4/hbase-0.94.2/bin$ ./stop-hbase.sh   
  4. stopping hbase..............................................  

查看日志

[plain] view plaincopyprint?
  1. 2013-01-15 15:37:45,377 INFO org.apache.hadoop.ipc.HBaseServer: Starting IPC Server listener on 60000  
  2. 2013-01-15 15:37:45,420 INFO org.apache.hadoop.hbase.ipc.HBaseRpcMetrics: Initializing RPC Metrics with hostName=HMaster, port=60000  
  3. 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  
  4. 2013-01-15 15:37:46,075 INFO org.apache.zookeeper.ZooKeeper: Client environment:host.name=master  
  5. 2013-01-15 15:37:46,075 INFO org.apache.zookeeper.ZooKeeper: Client environment:java.version=1.6.0_13  
  6. 2013-01-15 15:37:46,075 INFO org.apache.zookeeper.ZooKeeper: Client environment:java.vendor=Sun Microsystems Inc.  
  7. 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 Version0.94.2, r1395367HBase version and revision
HBase CompiledSun Oct 7 19:11:01 UTC 2012, jenkinsWhen HBase version was compiled and by whom
Hadoop Version1.0.4, r1393290Hadoop version and revision
Hadoop CompiledWed Oct 3 05:13:58 UTC 2012, hortonfoWhen Hadoop version was compiled and by whom
HBase Root Directoryfile:/tmp/hbase-mango/hbaseLocation of HBase home directory
HBase Cluster ID2a63a79a-3ec9-48d1-b840-d7635c6fb304Unique identifier generated for each HBase cluster
Load average2.67Average number of regions per regionserver. Naive computation.
Zookeeper Quorumslave1:2181,master:2181,slave2:2181Addresses of all registered ZK servers. For more, see zk dump.
Coprocessors[]Coprocessors currently loaded loaded by the master
HMaster Start TimeTue Jan 15 16:17:44 CST 2013Date stamp of when this HMaster was started
HMaster Active TimeTue Jan 15 16:17:44 CST 2013Date stamp of when this HMaster became active


hbase.rootdir 参数写成了 hbase.root.dir


hbase-site.xml如下:

[html] view plaincopyprint?
  1. <configuration>  
  2.         <property>  
  3.                 <name><span style="color: rgb(255, 0, 0);">hbase.root.dir</span></name>  
  4.                 <value>hdfs://master:9000/hbase</value>  
  5.         </property>  
  6.         <property>  
  7.                 <name>hbase.cluster.distributed</name>  
  8.                 <value>true</value>  
  9.         </property>  
  10.         <property>  
  11.                 <name>hbase.master</name>  
  12.                 <value>hdfs://master:<span style="color: rgb(255, 0, 0);">6000</span></value>  
  13.         </property>  
  14.         <property>  
  15.                 <name>hbase.zookeeper.quorum</name>  
  16.                 <value>master,slave1,slave2</value>  
  17.         </property>  
  18.   
  19. </configuration>  

修改hbase-site.xml后,重启集群,一切恢复正常。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值