Home:ALL Converter>ERROR : $ hadoop namenode -format

ERROR : $ hadoop namenode -format

Ask Time:2014-05-11T00:26:40         Author:Chirag Ahuja

Json Formatter

When I run hadoop namenode -format command, I get the following error:

14/05/10 09:51:36 INFO namenode.NameNode: Caching file names occuring more than 10 times 
14/05/10 09:51:36 ERROR namenode.NameNode: java.io.IOException: Cannot create directory /app/hadoop/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)

14/05/10 09:51:36 INFO namenode.NameNode: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at chirag/127.0.1.1
************************************************************/

Author:Chirag Ahuja,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/23583555/error-hadoop-namenode-format
yy