HDP on Linux – Installation Forum

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

  • #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
    ************************************************************/

to create new topics or reply. | New User Registration

  • Author
    Replies
  • #30325
    Sasha J
    Moderator

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

    Hope this helps!
    Thank you!
    Sasha

    #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.

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

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

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.