千家信息网

hbase中hbase和regionserver端口冲突问题

发表于:2025-02-01 作者:千家信息网编辑
千家信息网最后更新 2025年02月01日,hbase中 hmaster 和regionserver的端口冲突问题java.lang.RuntimeException: Failed construction of Regionserver:
千家信息网最后更新 2025年02月01日hbase中hbase和regionserver端口冲突问题

hbase hmaster regionserver的端口冲突问题

java.lang.RuntimeException: Failed construction of Regionserver: class org.apache.hadoop.hbase.regionserver.HRegionServer

at org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:2458)

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:2473)

Caused by: java.lang.reflect.InvocationTargetException

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

at org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:2456)

... 5 more

Caused by: java.net.BindException: Problem binding to om-liyongjian-119/192.168.188.119:16020 : Address already in use

at org.apache.hadoop.hbase.ipc.RpcServer.bind(RpcServer.java:2368)

at org.apache.hadoop.hbase.ipc.RpcServer$Listener.(RpcServer.java:524)

at org.apache.hadoop.hbase.ipc.RpcServer.(RpcServer.java:1896)

at org.apache.hadoop.hbase.regionserver.RSRpcServices.(RSRpcServices.java:788)

at org.apache.hadoop.hbase.regionserver.HRegionServer.createRpcServices(HRegionServer.java:570)

at org.apache.hadoop.hbase.regionserver.HRegionServer.(HRegionServer.java:487)

... 10 more

Caused by: java.net.BindException: Address already in use

at sun.nio.ch.Net.bind0(Native Method)

at sun.nio.ch.Net.bind(Net.java:444)

at sun.nio.ch.Net.bind(Net.java:436)

at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)

at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)

at org.apache.hadoop.hbase.ipc.RpcServer.bind(RpcServer.java:2366)

... 15 more

执行 bin/start-hbase.sh 后,在hmaster 节点上执行 bin/local-regionservers.sh start 1(2,3,4...) 启动regionserver

1,2,3,4表示偏移量 默认端口是 16020 加上偏移量之后启用16021端口,解决端口冲突


0