Tag Archives: UnknownHostException

Solution to unknown hostexception error when HBase starts regionserver

Error when HBase starts regionserver:

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

*Where “XXX” is the value of dfs.nameservices attribute in hdfs-site.xml

The reason is that the value of hbase.rootdir attribute in hbase-site.xml file uses the entry of zookeeper, that is, the value of dfs.nameservices

 

resolvent:

Copy the core-site.xml and hdfs-site.xml files in the/Hadoop/etc/Hadoop/directory to the/HBase/conf/directory

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

*Each node (each machine) needs to perform this operation