ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

1、安装完hbase之后,进入shell报错
  1. hbase(main):002:0> create 'test', 'cf1'

  2. ERROR: org.apache.hadoop.hbase.PleaseHoldException: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

  3. Here is some help for this command:
  4. Create table; pass table name, a dictionary of specifications per
  5. column family, and optionally a dictionary of table configuration.
  6. Dictionaries are described below in the GENERAL NOTES section.
  7. Examples:

  8.   hbase> create 't1', {NAME => 'f1', VERSIONS => 5}
  9.   hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'}
  10.   hbase> # The above in shorthand would be the following:
  11.   hbase> create 't1', 'f1', 'f2', 'f3'
  12.   hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true}
  13.   hbase> create 't1', 'f1', {SPLITS => ['10', '20', '30', '40']}
  14.   hbase> create 't1', 'f1', {SPLITS_FILE => 'splits.txt'}
  15.   hbase> # Optionally pre-split the table into NUMREGIONS, using
  16.   hbase> # SPLITALGO ("HexStringSplit", "UniformSplit" or classname)
  17.   hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit'}
2、看不出什么问题,java的报错给的信息太少,只能看log日志了
  1. 2015-09-08 13:06:48,198 INFO org.apache.hadoop.hbase.procedure.ZKProcedureUtil: Clearing all procedure znodes: /hbase/online-snapshot/acquired /hbase/online-snapshot/reached /hbase/online-snapshot/abort
  2. 2015-09-08 13:06:48,200 DEBUG org.apache.hadoop.hbase.procedure.ZKProcedureCoordinatorRpcs: Starting the controller for procedure member:master1,60000,1441717604714
  3. 2015-09-08 13:06:48,205 DEBUG org.apache.hadoop.hbase.executor.ExecutorService: Starting executor service name=MASTER_OPEN_REGION-master1,60000,1441717604714, corePoolSize=5, maxPoolSize=5
  4. 2015-09-08 13:06:48,205 DEBUG org.apache.hadoop.hbase.executor.ExecutorService: Starting executor service name=MASTER_CLOSE_REGION-master1,60000,1441717604714, corePoolSize=5, maxPoolSize=5
  5. 2015-09-08 13:06:48,205 DEBUG org.apache.hadoop.hbase.executor.ExecutorService: Starting executor service name=MASTER_SERVER_OPERATIONS-master1,60000,1441717604714, corePoolSize=3, maxPoolSize=3
  6. 2015-09-08 13:06:48,206 DEBUG org.apache.hadoop.hbase.executor.ExecutorService: Starting executor service name=MASTER_META_SERVER_OPERATIONS-master1,60000,1441717604714, corePoolSize=5, maxPoolSize=5
  7. 2015-09-08 13:06:48,206 DEBUG org.apache.hadoop.hbase.executor.ExecutorService: Starting executor service name=MASTER_TABLE_OPERATIONS-master1,60000,1441717604714, corePoolSize=1, maxPoolSize=1
  8. 2015-09-08 13:06:48,208 DEBUG org.apache.hadoop.hbase.master.cleaner.CleanerChore: initialize cleaner=org.apache.hadoop.hbase.master.cleaner.TimeToLiveLogCleaner
  9. 2015-09-08 13:06:48,212 DEBUG org.apache.hadoop.hbase.master.cleaner.CleanerChore: initialize cleaner=org.apache.hadoop.hbase.master.cleaner.TimeToLiveHFileCleaner
  10. 2015-09-08 13:06:48,212 DEBUG org.apache.hadoop.hbase.master.HMaster: Started service threads
  11. 2015-09-08 13:06:48,212 INFO org.apache.hadoop.hbase.master.ServerManager: Waiting for region servers count to settle; currently checked in 0, slept for 0 ms, expecting minimum of 1, maximum of 2147483647, timeout of 4500 ms, interval of 1500 ms.
  12. 2015-09-08 13:06:49,721 INFO org.apache.hadoop.hbase.master.ServerManager: Waiting for region servers count to settle; currently checked in 0, slept for 1508 ms, expecting minimum of 1, maximum of 2147483647, timeout of 4500 ms, interval of 1500 ms.
  13. ...................................................
  14. ...................................................
  15. ...................................................
  16. 2015-09-08 13:07:08,021 INFO org.apache.hadoop.hbase.master.ServerManager: Waiting for region servers count to settle; currently checked in 0, slept for 19809 ms, expecting minimum of 1, maximum of 2147483647, timeout of 4500 ms, interval of 1500 ms.
日志中一直不断的出现等待region server,感觉好像是hmaster和regionserver无法连接
3、查看hbase-site.xml的配置信息
  1. <property>
  2. <name>hbase.cluster.distributed</name>
  3. <value>true</value>
  4. </property>
把上面这部分信息去掉
4、重启hbase
5、再次进入shell中创建表
  1. grid@master1:/usr/local/hbase/conf$ start-hbase.sh
  2. starting master, logging to /usr/local/hbase/logs/hbase-grid-master-master1.out
  3. slave3: starting regionserver, logging to /usr/local/hbase/bin/../logs/hbase-grid-regionserver-slave3.out
  4. slave2: starting regionserver, logging to /usr/local/hbase/bin/../logs/hbase-grid-regionserver-slave2.out
  5. slave1: starting regionserver, logging to /usr/local/hbase/bin/../logs/hbase-grid-regionserver-slave1.out
  6. grid@master1:/usr/local/hbase/conf$ hbase shell
  7. HBase Shell; enter 'help<RETURN>' for list of supported commands.
  8. Type "exit<RETURN>" to leave the HBase Shell
  9. Version 0.94.27, rfb434617716493eac82b55180b0bbd653beb90bf, Thu Mar 19 06:17:55 UTC 2015

  10. hbase(main):001:0> create 'test', 'cf1'
  11. 0 row(s) in 2.0140 seconds

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12219480/viewspace-1794790/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/12219480/viewspace-1794790/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值