Hadoop集群部署,Hbase创建表错误(Master is initializing)

转自:http://blog.sina.com.cn/s/blog_af5a109b01018ezy.html
错误问题描述:
HBase集群部署完成,测试创建表,出现错误,操作描述如下:
hadoop@namenode>sh hbase shell
HBase Shell; enter ‘help’ for list of supported commands.
Type “exit” to leave the HBase Shell
Version 0.94.2, r1395367, Sun Oct 7 19:11:01 UTC 2012
hbase(main):003:0> create ‘tees’,’cf’
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’}
解决方案:
核对/etc/hosts配制如下
127.0.0.1 localhost
192.168.1.7 master
192.168.1.8 slave1
192.168.1.9 slave2
192.168.1.10 slave3
核对HBase namenode的regionservers配制如下:
master //本案例错误是因为没有配制这条数据引起,配制后创建表恢复正常.
slave1
slave2
slave3
核对HBase datanode的regionservers配制如下:
slave1
slave2
slave3

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值