Hadoop叢集部署,Hbase建立表錯誤(Master is initializing)
錯誤問題描述:
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