hdfs zkfc -formatZK 報錯 Does not contain a valid host:port authority: master
阿新 • • 發佈:2020-12-29
hdfs zkfc -formatZK 報錯
hdfs zkfc -formatZK
Exception in thread “main” java.lang.IllegalArgumentException: Does not contain a valid host:port authority: master
[[email protected] 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 通訊埠號沒給:
記得加