namenode格式报错
hadoop配置文件配置好以后,执行hadoop namenode -format提示未找到命令,不知道是什么原因,java——home之类我都配置好了,没有问题。
hadoop配置文件配置好以后,执行hadoop namenode -format提示未找到命令,不知道是什么原因,java——home之类我都配置好了,没有问题。
2015-07-15
15/09/14 19:00:40 ERROR namenode.NameNode: java.io.IOException: Cannot create directory /hadoop/dfs/name/current
at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.clearDirectory(Storage.java:294)
at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:1337)
at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:1356)
at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1261)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1467)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1488)
老师帮我看看,如果能可以的话,加我一下,真的很着急,好久了也没有把hadoop配好。我正常用namenode格式的报错了:
namenode.FSNamesystem: isAccessTokenEnabled=false accessKeyUpdateInterval=0 min(s), accessTokenLifetime=0 min(s)
15/07/28 18:42:05 INFO namenode.FSEditLog: dfs.namenode.edits.toleration.length = 0
15/07/28 18:42:05 INFO namenode.NameNode: Caching file names occuring more than 10 times
15/07/28 18:42:06 ERROR namenode.NameNode: java.io.IOException: Cannot create directory /opt/hadoop/hadoop-1.2.1/tmp/dfs/name/current
at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.clearDirectory(Storage.java:294)
at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:1337)
at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:1356)
at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1261)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1467)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1488)
举报