当前位置:   article > 正文

hbase启动异常解决方法_java.io.interruptedioexception at org.apache.hadoo

java.io.interruptedioexception at org.apache.hadoop.hbase.ipc.blockingrpcca

今天在启动hbase得时候,报如下异常:

  1. ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
  2. at org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:2938)
  3. at org.apache.hadoop.hbase.master.HMaster.listNamespaces(HMaster.java:3264)
  4. at org.apache.hadoop.hbase.master.MasterRpcServices.listNamespaces(MasterRpcServices.java:1027)
  5. at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java)
  6. at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:393)
  7. at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:133)
  8. at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:338)
  9. at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:318)

重启hbase之后,仍然出现上述异常。推测可能是HDFS中和zk中的hbase没有删除导致。

  • 删除zk中的所有/hbase目录
  1. 1. 切换到zk中的所有/hbase目录
  2. [root@Hadoop20 azkaban-web]# cd /opt/soft/zk345/bin/
  3. 2. 执行命令
  4. [root@Hadoop20 bin]# ./zkCli.sh
  5. Connecting to localhost:2181
  6. 3. 查看所有内容
  7. [zk: localhost:2181(CONNECTED) 0] ls /
  8. [cluster, controller_epoch, brokers, zookeeper, feature, admin, isr_change_notification, consumers, log_dir_event_notification, latest_producer_id_block, config, hbase]
  9. 4. 删除zk中的所有hbase目录
  10. [zk: localhost:2181(CONNECTED) 4] rmr /hbase
  11. 5. 查看删除后目录
  12. [zk: localhost:2181(CONNECTED) 5] ls /
  13. [cluster, controller_epoch, brokers, zookeeper, feature, admin, isr_change_notification, consumers, log_dir_event_notification, latest_producer_id_block, config]
  • 删除HDFS下所有的hbase目录
  1. [root@Hadoop20 bin]# hadoop fs -rm -r /hbase
  2. Deleted /hbase

下面重启hbase、zookeeper、hadoop就可以了

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/546284
推荐阅读
相关标签
  

闽ICP备14008679号