HBase启动RegionServer时报错:

ERROR [main] regionserver.HRegionServer: Failed construction RegionServer
java.lang.IllegalArgumentException: java.net.UnknownHostException: xxx

* 其中的“xxx”为hdfs-site.xml中dfs.nameservices属性的值

原因是hbase-site.xml文件的hbase.rootdir属性的值用的是ZooKeeper的入口,即dfs.nameservices的值

 

解决方法:

把/hadoop/etc/hadoop/目录的core-site.xml和hdfs-site.xml文件复制到/hbase/conf/目录中

cd /hadoop/etc/hadoop
cp core-site.xml hdfs-site.xml /hbase/conf

* 每个节点(每台机)都需要执行该操作

 

相关文章:

  • 2021-07-01
  • 2021-05-11
  • 2021-09-28
  • 2021-12-06
  • 2022-01-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-01-23
  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
相关资源
相似解决方案