hadoop2.6搭建 格式化出现错误

log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /var/log/hadoop/hadoop/hdfs-audit.log (没有那个文件或目录)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:221)
at java.io.FileOutputStream.(FileOutputStream.java:142)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)

15/10/12 16:15:27 WARN namenode.NameNode: Encountered exception during format:
java.io.IOException: Cannot remove current directory: /hadoop/hdfs/namenode/current
at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.clearDirectory(Storage.java:332)
at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:546)
at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:567)
at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:148)
at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:870)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1281)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1395)
15/10/12 16:15:27 FATAL namenode.NameNode: Exception in namenode join
java.io.IOException: Cannot remove current directory: /hadoop/hdfs/namenode/current
at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.clearDirectory(Storage.java:332)
at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:546)
at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:567)
at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:148)
at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:870)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1281)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1395)
15/10/12 16:15:27 INFO util.ExitUtil: Exiting with status 1
15/10/12 16:15:27 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************

1个回答

fcz610
fcz610 那么怎么解决这个问题?
4 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问