HBase啟動RegionServer時報UnknownHostException錯誤的解決方法


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

* 每個節點(每台機)都需要執行該操作

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM