为了账号安全,请及时绑定邮箱和手机立即绑定

The hostname of regionserver cannot be set to localhost in a fully-distributed

2018-05-23 16:24:41,722 FATAL [main] regionserver.RSRpcServices: The hostname of regionserver cannot be set to localhost in a fully-distributed setup because it won't be reachable. See "Getting Started" for more information.

2018-05-23 16:24:41,722 ERROR [main] regionserver.HRegionServerCommandLine: Region server exiting

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.io.IOException: The hostname of regionserver cannot be set to localhost in a fully-distributed setup because it won't be reachable. See "Getting Started" for more information.

at org.apache.hadoop.hbase.regionserver.RSRpcServices.<init>(RSRpcServices.java:775)

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

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

... 10 more


正在回答

2 回答

配置 $HBASE_HOME/conf/regionservers 文件,不能使用 localhost,使用你集群节点的 hostname

0 回复 有任何疑惑可以回复我~

请问老师这是什么原因呢?

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
HBase入门
  • 参与学习       30050    人
  • 解答问题       44    个

HBase入门教程,从基础概念到实战操作,让初学者快速入门

进入课程

The hostname of regionserver cannot be set to localhost in a fully-distributed

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信