赞
踩
今天在启动hbase得时候,报如下异常:
- ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
- at org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:2938)
- at org.apache.hadoop.hbase.master.HMaster.listNamespaces(HMaster.java:3264)
- at org.apache.hadoop.hbase.master.MasterRpcServices.listNamespaces(MasterRpcServices.java:1027)
- at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java)
- at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:393)
- at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:133)
- at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:338)
- at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:318)
重启hbase之后,仍然出现上述异常。推测可能是HDFS中和zk中的hbase没有删除导致。
- 1. 切换到zk中的所有/hbase目录
- [root@Hadoop20 azkaban-web]# cd /opt/soft/zk345/bin/
-
- 2. 执行命令
- [root@Hadoop20 bin]# ./zkCli.sh
- Connecting to localhost:2181
-
- 3. 查看所有内容
- [zk: localhost:2181(CONNECTED) 0] ls /
- [cluster, controller_epoch, brokers, zookeeper, feature, admin, isr_change_notification, consumers, log_dir_event_notification, latest_producer_id_block, config, hbase]
-
- 4. 删除zk中的所有hbase目录
- [zk: localhost:2181(CONNECTED) 4] rmr /hbase
-
- 5. 查看删除后目录
- [zk: localhost:2181(CONNECTED) 5] ls /
- [cluster, controller_epoch, brokers, zookeeper, feature, admin, isr_change_notification, consumers, log_dir_event_notification, latest_producer_id_block, config]
- [root@Hadoop20 bin]# hadoop fs -rm -r /hbase
- Deleted /hbase
下面重启hbase、zookeeper、hadoop就可以了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。