Hadoop HBase 数据库出现 Master is initializing 报错解决

版权声明:尊重原创,转载请标明出处 https://blog.csdn.net/jifgjifg/article/details/80402385

当我们进入到 HBase shell 后,使用 “status” 命令查看 HBase 运行状态时,出现以下报错信息:

hbase(main):001:0> status

ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
    at org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:1889)
    at org.apache.hadoop.hbase.master.MasterRpcServices.getClusterStatus(MasterRpcServices.java:695)
    at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:42406)
    at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2033)
    at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:107)
    at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130)
    at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107)
    at java.lang.Thread.run(Thread.java:745)

Here is some help for this command:
Show cluster status. Can be 'summary', 'simple', 'detailed', or 'replication'. The
default is 'summary'. Examples:

  hbase> status
  hbase> status 'simple'
  hbase> status 'summary'
  hbase> status 'detailed'
  hbase> status 'replication'
  hbase> status 'replication', 'source'
  hbase> status 'replication', 'sink'

这里提供一个可能的原因:几台主机的当前时间相差大于30秒
Centos 6.5的调整时间的方法如图:
这里写图片描述

猜你喜欢

转载自blog.csdn.net/jifgjifg/article/details/80402385