当前位置:   article > 正文

HBase无法启动HRegionServer_hbase没有hquorumpeer进程

hbase没有hquorumpeer进程

问题描述:

通过 bin/start-hbase.sh无法开启HRegionServer,查看了日志发现如下错误:

ava.lang.RuntimeException: Failed construction of Regionserver: class org.apache.hadoop.hbase.regionserver.HRegionServer
        at org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:2706)
        at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.start(HRegionServerCommandLine.java:64)
        at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.run(HRegionServerCommandLine.java:87)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
        at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.main(HRegionServer.java:2721)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:2704)
        ... 5 more
Caused by: java.io.IOException: Problem binding to hadoop02/192.168.10.102:16020 : 地址已在使用. To switch ports use the 'hbase.regionserver.port' configuration property.
        at org.apache.hadoop.hbase.regionserver.RSRpcServices.<init>(RSRpcServices.java:1002)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.createRpcServices(HRegionServer.java:667)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:543)
        ... 10 more
Caused by: java.net.BindException: 地址已在使用
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:433)
        at sun.nio.ch.Net.bind(Net.java:425)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at org.apache.hadoop.hbase.ipc.RpcServer.bind(RpcServer.java:2742)
        at org.apache.hadoop.hbase.ipc.RpcServer$Listener.<init>(RpcServer.java:661)
        at org.apache.hadoop.hbase.ipc.RpcServer.<init>(RpcServer.java:2178)
        at org.apache.hadoop.hbase.regionserver.RSRpcServices.<init>(RSRpcServices.java:994)
        ... 12 more

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

分析

运行时异常,class org.apache.hadoop.hbase.regionserver.HRegionServer,查看了一圈网上的解决方案没解决。下面pull上找到解决方法,可这个路径一开始就弄好了。

  • 把hadoop的hdfs-site.xml和core-site.xml 放到hbase/conf下
    因此关闭一下hbase:bin/stop-hbase.sh单独开启HMaster和HRegionServer
bin/hbase-daemon.sh start master
bin/hbase-daemon.sh start regionserver
  • 1
  • 2

可以正常启动,查看日志也没问题。

解决

这时候看到conf文件下regionservers,将localhost删除,停止bin/stop-hbase.sh后。再次start就正常启动了。

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

闽ICP备14008679号