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
Similar Posts:
- [Solved] Hbase list ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
- [HBase] java.io.IOException: Failed on local exception: com.google.protobuf.InvalidProtocolBufferException: Protocol message end-group tag did not match expected tag.
- [Solved] HBase Startup Error: master.HMaster: Failed to become active master
- [Solved] Hbase Error: org.apache.hadoop.hbase.ipc.FailedServerException
- [Solved] zookeeper deletes a directory node Error: authentication is not valid: /HBase/tokenauth
- [Solved] Exception in thread “main“ java.net.ConnectException: Call From
- Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster
- [HBase] – the default port is occupied, and an error is reported when starting
- [Solved] Hbase Startup Normally but Execute Error: Server is not running yet
- [Solved] Hbase Exception: java.io.EOFException: Premature EOF: no length prefix available