当前位置:   article > 正文

hbase启动后,HRegionServer进程不存在解决方法_hbase启动后没有进程hquorumpeer

hbase启动后没有进程hquorumpeer

安装好hbase里面只有HQuorumPeer,没有 HRegionServer。这时我们在hbase/bin里启动./hbase shell 后输入status,list,create ‘tab1’,’fam1’等命令报错。

hbase(main):002:0> status

ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
    at org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:2228)
    at org.apache.hadoop.hbase.master.MasterRpcServices.getClusterStatus(MasterRpcServices.java:759)
    at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:52165)
    at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2117)
    at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:104)
    at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:133)
    at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:108)
    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'
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24

原因:在slave1、slave2主机中查看CST时间
[grid@slave1 bin]$ date
2017年 03月 05日 星期日 21:30:57 CST

在master主机中查看CST时间
[grid@master bin]$ date
2017年 03月 05日 星期日 13:31:39 CST

没错主从节点的系统日期是不一样的。
解决方法:把master主机的时间设置成和slave主机时间一致
[root@master bin]# date -s 21:33:10
2017年 03月 05日 星期日 21:33:10 CST

重启start-hbase.sh
在slave主机输入jps查看

[grid@slave1 bin]$ jps
2808 DataNode
3254 QuorumPeerMain
2910 NodeManager
1743 Jps
1691 HRegionServer
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

成功启动!
验证:

[grid@master bin]$ ./hbase shell
2017-03-05 21:36:40,339 WARN  [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 1.1.4, r14c0e77956f9bb4c6edf0378474264843e4a82c3, Wed Mar 16 21:18:26 PDT 2016

hbase(main):001:0> list
TABLE                                                                                                                 
0 row(s) in 0.3220 seconds

=> []
hbase(main):002:0> satus
NameError: undefined local variable or method `satus' for #<Object:0x6e64f905>

hbase(main):003:0> create 'tab1','fam1'
0 row(s) in 1.4300 seconds

=> Hbase::Table - tab1
hbase(main):004:0>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/724318
推荐阅读
相关标签
  

闽ICP备14008679号