1、在做格式化时,/bin/hdfs namenode -format出错:
ERROR namenode.NameNode: Failed to start namenode.
java.lang.IllegalArgumentException: URI has an authority component
at java.base/java.io.File.(File.java:423)
at org.apache.hadoop.hdfs.server.namenode.NNStorage.getStorageDirectory(NNStorage.java:338)
at org.apache.hadoop.hdfs.server.namenode.FSEditLog.initJournals(FSEditLog.java:286)
at org.apache.hadoop.hdfs.server.namenode.FSEditLog.initJournalsForWrite(FSEditLog.java:257)
at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1103)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1551)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1678)
INFO util.ExitUtil: Exiting with status 1
INFO namenode.NameNode: SHUTDOWN_MSG:
原因:一般都是hdfs-site.xml、core-site.xml等的配置的出错,比如涉及到的目录路径有误等。
阅读(1785) | 评论(0) | 转发(0) |