Friday, March 29, 2013

Error (SHUTDOWN_MSG: Shutting down NameNode at .... ) when trying to format hadoop name node

Ever get this error while trying to format your namenode in hadoop?

 hadoop namenode -format
13/03/29 16:34:11 INFO namenode.NameNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG:   host = node001/10.10.10.158
STARTUP_MSG:   args = [-format]
STARTUP_MSG:   version = 1.1.2
STARTUP_MSG:   build = https://svn.apache.org/repos/asf/hadoop/common/branches/b                                                                             ranch-1.1 -r 1440782; compiled by 'hortonfo' on Thu Jan 31 02:06:43 UTC 2013
************************************************************/
Re-format filesystem in /tmp/hadoop-root/dfs/name ? (Y or N) y
Format aborted in /tmp/hadoop-root/dfs/name
13/03/29 16:34:14 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at
node001/10.10.10.158
************************************************************/

You have to be very careful and you must type a CAPITAL Y and not a lower case y!

Source:  Link

ShareThis