[HBase] ERROR:org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
2016-02-27 16:48
791 查看
[HBase] ERROR:org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
mango@master:~/hadoop-1.1.2//bin$ hbase shellHBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.94.2, r1395367, Sun Oct 7 19:11:01 UTC 2016
hbase(main):001:0> status
3 servers, 0 dead, 0.0000 average load
hbase(main):002:0> create 't1','f1'
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'}
执行stop-hbase.sh 处于无限等待状态
[plain] view plaincopyprint?
mango@master:~/hadoop-1.0.4/hbase-0.94.2/bin$ ./st
start-hbase.sh stop-hbase.sh
mango@master:~/hadoop-1.0.4/hbase-0.94.2/bin$ ./stop-hbase.sh
stopping hbase..............................................
查看日志
[plain] view plaincopyprint?
2013-01-15 15:37:45,377 INFO org.apache.hadoop.ipc.HBaseServer: Starting IPC Server listener on 60000
2013-01-15 15:37:45,420 INFO org.apache.hadoop.hbase.ipc.HBaseRpcMetrics: Initializing RPC Metrics with hostName=HMaster, port=60000
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
2013-01-15 15:37:46,075 INFO org.apache.zookeeper.ZooKeeper: Client environment:host.name=master
2013-01-15 15:37:46,075 INFO org.apache.zookeeper.ZooKeeper: Client environment:java.version=1.6.0_13
2013-01-15 15:37:46,075 INFO org.apache.zookeeper.ZooKeeper: Client environment:java.vendor=Sun Microsystems Inc.
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 Version | 0.94.2, r1395367 | HBase version and revision |
HBase Compiled | Sun Oct 7 19:11:01 UTC 2012, jenkins | When HBase version was compiled and by whom |
Hadoop Version | 1.0.4, r1393290 | Hadoop version and revision |
Hadoop Compiled | Wed Oct 3 05:13:58 UTC 2012, hortonfo | When Hadoop version was compiled and by whom |
HBase Root Directory | file:/tmp/hbase-mango/hbase | Location of HBase home directory |
HBase Cluster ID | 2a63a79a-3ec9-48d1-b840-d7635c6fb304 | Unique identifier generated for each HBase cluster |
Load average | 2.67 | Average number of regions per regionserver. Naive computation. |
Zookeeper Quorum | slave1:2181,master:2181,slave2:2181 | Addresses of all registered ZK servers. For more, see zk dump. |
Coprocessors | [] | Coprocessors currently loaded loaded by the master |
HMaster Start Time | Tue Jan 15 16:17:44 CST 2013 | Date stamp of when this HMaster was started |
HMaster Active Time | Tue Jan 15 16:17:44 CST 2013 | Date stamp of when this HMaster became active |
hbase-site.xml如下:
[html] view plaincopyprint?
<configuration>
<property>
<name><span style="color: rgb(255, 0, 0);">hbase.root.dir</span></name>
<value>hdfs://master:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.master</name>
<value>hdfs://master:<span style="color: rgb(255, 0, 0);">6000</span></value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>master,slave1,slave2</value>
</property>
</configuration>
修改hbase-site.xml后,重启集群,一切恢复正常。
相关文章推荐
- Apache James搭建内网邮件服务器
- <? extends SomeClass>与<T extends SomeClass>的区别
- Apache-DbUtils学习
- 译:在ASP.NET MVC5中如何使用Apache log4net 类库来记录日志
- 基于 Apache 在本地配置多个虚拟主机
- 离线安装 Apache Ambari
- apache几种限制ip的方法
- apache的order allow deny
- apache只记录指定URI的日志
- 使apache的日志文件里不记录图片文件
- apache AH00558 错误的解决
- CentOS apache升级实录
- Apache Commons DbUtils
- apache 限制某些目录不能访问通过rewrite实现
- apache 限制指定user_agent
- apache 开启伪静态 Rewrite及检测
- 【手把手教你全文检索】Apache Lucene初探
- [Apache系列]怎样在windows下配置apache vhost
- Linux中Apache安装、配置、加为服务
- wdcp 打开网页显示 Apache 2 Test Page powered by CentOS