hadoop错误:Does not contain a valid host:port authority
Posted 大墨垂杨
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hadoop错误:Does not contain a valid host:port authority相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章
Laravel Composer 错误 Uncaught ReflectionException: Class log does not exist in Container.php:738
Eclipse 软件 Java 解决:出现的editor does not contain a main type错误框 问题
升级后,XCode 归档时出现“The Package Does Not Contain an Info.plist”错误
Mapped Statements collection does not contain value for xxx.xxx 错误原因&解决方案
mybatis 异常Result Maps collection does not contain value for java.lang.String