Home Forums HDP on Linux – Installation Unable to Format the NameNode, has to force the format.

This topic contains 2 replies, has 2 voices, and was last updated by  Jayashankar VS 12 months ago.

  • Creator
    Topic
  • #30257

    Jayashankar VS
    Participant

    Team,
    I am unable to format the namenode(/usr/lib/hadoop/bin/hadoop namenode -format), since there are no exceptions being logged in not sure what the issue is, below is the exception. Meanwhile I found a workaround by forcing the format(/usr/lib/hadoop/bin/hadoop namenode -format -force).
    13/07/28 18:36:29 INFO namenode.NameNode: STARTUP_MSG:
    /************************************************************
    STARTUP_MSG: Starting NameNode
    STARTUP_MSG: host = hadoopnn/192.168.1.10
    STARTUP_MSG: args = [-format]
    STARTUP_MSG: version = 1.1.2.21
    STARTUP_MSG: build = -r ; compiled by ‘jenkins’ on Thu Jan 10 12:34:48 PST 2013
    ************************************************************/
    Re-format filesystem in /grid/hadoop/hdfs/nn ? (Y or N) y
    Format aborted in /grid/hadoop/hdfs/nn
    13/07/28 18:36:43 INFO namenode.NameNode: SHUTDOWN_MSG:
    /************************************************************
    SHUTDOWN_MSG: Shutting down NameNode at hadoopnn/192.168.1.10
    ************************************************************/

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #30373

    Jayashankar VS
    Participant

    Thanks so much capital Y worked like a charm. But then I think this is a bug because similar stuff you will find working well in Linux when patch update isrun, moreover if it’s imminent to use Y then there should be proper message thrown to the user else this is a bit misleading I guess. This is just my thought.

    Collapse
    #30325

    Sasha J
    Moderator

    Response should be CAPITAL…
    “Y” or “N”, but you typed “y” lower case….

    Hope this helps!
    Thank you!
    Sasha

    Collapse
Viewing 2 replies - 1 through 2 (of 2 total)