Support Questions

Find answers, ask questions, and share your expertise

Zkfc + Does not contain a valid host

avatar

we installed from scratch new ambari cluster

and we notice that Zkfc is fail to start as the following:

what this mean - java.lang.IllegalArgumentException: Does not contain a valid host ??

/usr/hdp/2.6.0.3-8/hadoop/sbin/hadoop-daemon.sh start  zkfc
starting zkfc, logging to /var/log/hadoop/hdfs/hadoop-hdfs-zkfc-master01.bx_hhtyr8.com.out
Exception in thread "main" java.lang.IllegalArgumentException: Does not contain a valid host:port authority: master01.bx_hhtyr8.com:8020
        at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:213)
        at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:164)
        at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:153)
        at org.apache.hadoop.hdfs.DFSUtil.getAddressesForNameserviceId(DFSUtil.java:699)
        at org.apache.hadoop.hdfs.DFSUtil.getAddressesForNsIds(DFSUtil.java:667)
        at org.apache.hadoop.hdfs.DFSUtil.getAddresses(DFSUtil.java:650)
        at org.apache.hadoop.hdfs.DFSUtil.getHaNnRpcAddresses(DFSUtil.java:749)
        at org.apache.hadoop.hdfs.HAUtil.isHAEnabled(HAUtil.java:77)
        at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.create(DFSZKFailoverController.java:128)
Michael-Bronson
1 ACCEPTED SOLUTION

avatar
Master Mentor

@Michael Bronson

Looks like the problem is with your hostname. "master01.bx_hhtyr8" Can you please try a hostname which does not have Underscore?

Please see the "Restrictions on valid hostnames" section from: https://en.wikipedia.org/wiki/Hostname link says

While a hostname may not contain other characters, such as the underscore character (_), other DNS names may contain the underscore.

.

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@Michael Bronson

Looks like the problem is with your hostname. "master01.bx_hhtyr8" Can you please try a hostname which does not have Underscore?

Please see the "Restrictions on valid hostnames" section from: https://en.wikipedia.org/wiki/Hostname link says

While a hostname may not contain other characters, such as the underscore character (_), other DNS names may contain the underscore.

.

avatar

yes seems you are right we already installe more then 30 clusters without problem and without Underscore

Michael-Bronson