Support Questions
Find answers, ask questions, and share your expertise

ZKFailoverController Start with error about java.lang.IllegalArgumentException: Does not contain a valid host:port authority

91624-capture.png

after we build a new cluster HDP - 2.6.4

cluster include - 3 masters machines and 3 workers machines ( data node )

and starting the services

we get the following error when starting the start the ZKFailoverController on master machines

2018-10-04 08:41:42,298 ERROR datanode.DataNode (DataNode.java:secureMain(2692)) - Exception in secureMain
java.lang.IllegalArgumentException: Does not contain a valid host:port authority: master01.krysve_ci90.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:668)
at org.apache.hadoop.hdfs.DFSUtil.getNNServiceRpcAddressesForCluster(DFSUtil.java:885)
at org.apache.hadoop.hdfs.server.datanode.BlockPoolManager.refreshNamenodes(BlockPoolManager.java:156)
at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:1287)
at org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:456)
at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2591)
at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2493)
at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2540)
at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2685)
at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2709)
2018-10-04 08:41:42,300 INFO  util.ExitUtil (ExitUtil.java:terminate(124)) - Exiting with status 1
2018-10-04 08:41:42,304 INFO  datanode.DataNode (LogAdapter.java:info(47)) - SHUTDOWN_MSG: 
/************************************************************

we got - "Does not contain a valid host:port authority"

what we need to check in order to understand this issue? , and resolving it

Michael-Bronson
1 ACCEPTED SOLUTION

Accepted Solutions

Re: ZKFailoverController Start with error about java.lang.IllegalArgumentException: Does not contain a valid host:port authority

Hi @Michael Bronson

I think the problem originates from the underscore used in the hostname krysve_ci90. Underscores should not be used in hostnames. Any chance you can try this with a different name / alias?

View solution in original post

5 REPLIES 5

Re: ZKFailoverController Start with error about java.lang.IllegalArgumentException: Does not contain a valid host:port authority

Hi @Michael Bronson

I think the problem originates from the underscore used in the hostname krysve_ci90. Underscores should not be used in hostnames. Any chance you can try this with a different name / alias?

View solution in original post

Re: ZKFailoverController Start with error about java.lang.IllegalArgumentException: Does not contain a valid host:port authority

how you can be sure that underscore isnt allow in ambari ckuster installation , where it is wrote ?

Michael-Bronson

Re: ZKFailoverController Start with error about java.lang.IllegalArgumentException: Does not contain a valid host:port authority

@Michael Bronson

I'm not sure it's explicitly documented for Ambari... Can you try without the underscore and see if it works?

See also; https://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_hostnames

Re: ZKFailoverController Start with error about java.lang.IllegalArgumentException: Does not contain a valid host:port authority

ok , I will create a new LAB , I and I will update if it will be success without the underscroe

Michael-Bronson

Re: ZKFailoverController Start with error about java.lang.IllegalArgumentException: Does not contain a valid host:port authority

@Michael Bronson

Did it work OK without the underscore? I'm curious and hope I didn't make you go through making a new lab for nothing :-) let me know if you still have any errors.