Unable to Format the NameNode, has to force the format.

to create new topics or reply. | New User Registration

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

  • Creator
  • #30257

    Jayashankar VS

    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/
    STARTUP_MSG: args = [-format]
    STARTUP_MSG: version =
    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/

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

You must be to reply to this topic. | Create Account

  • Author
  • #30373

    Jayashankar VS

    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.


    Sasha J

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

    Hope this helps!
    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.