Scroll to top

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

Author avatar
JBT
https://javabeginnerstutorial.com/

4 comments

  1. Suma Chada

    Thanks a lot,It worked for me.

  2. Gopa

    it worked for me too 🙂 thanks

  3. sachin

    awesome life saver lol

Post a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.