问题描述
- 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:
/************************************************************
解决方案
http://blog.csdn.net/stark_summer/article/details/42424279
文件没找到
解决方案二:
关于搭建Hadoop过程中出现的几个错误