zoukankan      html  css  js  c++  java
  • 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不合法,修改为不包含着‘.’ '/' '_'等非法字符。

  • 相关阅读:
    解决CollectionView TableView reloadData或者reloadSections时的刷新的闪烁问题
    HTTP请求头
    Fastlane 使用笔记
    python-函数式编程
    python-高级特性
    python基础使用
    python基础-函数02
    python基础-函数01
    python基础
    Linux基础
  • 原文地址:https://www.cnblogs.com/quchunhui/p/7683411.html
Copyright © 2011-2022 走看看