标签:mat read fail pac format net root cad .net
hadoop环境部署完,执行hdfs zkfc -formatZK命令时,提示如上图所示错误
错误内容:
[root@study_1_1 hadoop]# hdfs zkfc -formatZK Exception in thread "main" java.lang.IllegalArgumentException: Does not contain a valid host:port authority: study_1_1:9000 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:716) at org.apache.hadoop.hdfs.DFSUtil.getAddressesForNsIds(DFSUtil.java:685) at org.apache.hadoop.hdfs.DFSUtil.getAddresses(DFSUtil.java:667) at org.apache.hadoop.hdfs.DFSUtil.getHaNnRpcAddresses(DFSUtil.java:766) at org.apache.hadoop.hdfs.HAUtil.isHAEnabled(HAUtil.java:78) at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.create(DFSZKFailoverController.java:120) at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.main(DFSZKFailoverController.java:177)
经调查结果是由于主机的hostname不合法,修改为不包含着‘.’ ‘/‘ ‘_‘等非法字符。
hadoop错误:Does not contain a valid host:port authority
标签:mat read fail pac format net root cad .net
原文地址:http://www.cnblogs.com/quchunhui/p/7683411.html