Format aborted in /app/hadoop/tmp/dfs/name

While startng the Hadoop i was just trying to format the filesystem. For that i have executed below command.

bin/hadoop namenode -format

But i am getting below error while doing this. Could you please let me know what could be the reason behind this.

Warning: $HADOOP_HOME is deprecated.

13/08/10 13:52:56 INFO namenode.NameNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG: host = ubuntu/127.0.1.1
STARTUP_MSG: args = [-format]
STARTUP_MSG: version = 1.0.4
STARTUP_MSG: build = https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.0 -r 1393290; compiled by ‘hortonfo’ on Wed Oct 3 05:13:58 UTC 2012
************************************************************/
Re-format filesystem in /app/hadoop/tmp/dfs/name ? (Y or N) y
Format aborted in /app/hadoop/tmp/dfs/name
13/08/10 13:53:00 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at ubuntu/127.0.1.1
************************************************************/

 

Solution

Use CAPS Y instead of y while providing the input. It will solve your problem.

Re-format filesystem in /app/hadoop/tmp/dfs/name ? (Y or N)  Y

Here Y should be used and not y. Don’t know what is the reason behind this problem. But this solved my problem.  If any one knows the reason please let me know.Thanks

By | 2013-12-18T03:17:00+00:00 December 18th, 2013|Hadoop|3 Comments

About the Author:

3 Comments

  1. Suma Chada July 18, 2014 at 6:53 am - Reply

    Thanks a lot,It worked for me.

  2. Gopa March 22, 2015 at 2:16 pm - Reply

    it worked for me too 🙂 thanks

  3. sachin April 9, 2015 at 8:04 pm - Reply

    awesome life saver lol

Leave A Comment