hdfs zkfc -formatZK 报错 Does not contain a valid host:port authority: master

  • Post author:
  • Post category:其他



hdfs zkfc -formatZK 报错

hdfs zkfc -formatZK

Exception in thread “main” java.lang.IllegalArgumentException: Does not contain a valid host:port authority: master

[root@master hadoop]# hdfs zkfc -formatZK
Exception in thread "main" java.lang.IllegalArgumentException: Does not contain a valid host:port authority: master
        at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:212)
        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:677)
        at org.apache.hadoop.hdfs.DFSUtil.getAddressesForNsIds(DFSUtil.java:645)
        at org.apache.hadoop.hdfs.DFSUtil.getAddresses(DFSUtil.java:628)
        at org.apache.hadoop.hdfs.DFSUtil.getHaNnRpcAddresses(DFSUtil.java:727)
        at org.apache.hadoop.hdfs.HAUtil.isHAEnabled(HAUtil.java:77)
        at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.create(DFSZKFailoverController.java:120)
        at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.main(DFSZKFailoverController.java:177)

原因 rpc 通信端口号没给:

在这里插入图片描述
记得加



版权声明:本文为cyb2473541293原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。