设为首页 加入收藏

TOP

Hadoop集群部署,Hbase创建表错误(Master is initializing)
2019-05-02 01:48:24 】 浏览:93
Tags:Hadoop 集群 部署 Hbase 创建 错误 Master 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

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇HBase Region恢复逻辑 下一篇Java实现HDFS文本解析写入到Hbase..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目