fcz610
fcz610
2015-10-12 08:25

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

  • hadoop2.6
  • hadoop集群

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条回答

为你推荐