The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

HDP on Linux – Installation Forum

Hadoop 1.3 on Windows installation – Name node not starting up

  • #31778


    I was trying to install recently launched hdp- on windows 2012, one box installation. The installation was successful however I was unable to start the name node service. Following are the errors:
    2013-08-14 07:07:08,419 INFO org.apache.hadoop.hdfs.server.common.Storage: Storage directory C:\hdp_data\hdfs\nn does not exist
    2013-08-14 07:07:08,419 ERROR org.apache.hadoop.hdfs.server.namenode.FSNamesystem: FSNamesystem initialization failed.
    org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory C:\hdp_data\hdfs\nn is in an inconsistent state: storage directory does not exist or is not accessible.

    I manually tried creating the folder nn under the path but that did not help. The error I then received while trying to startup namenode service is that namenode needs to be formatted. I even tried that but it did not help.

    Am I missing something grossly?


  • Author
  • #32077

    I have the same exact error on a Windows 2012 single node installation. I’ve done the install a couple times with the same error.


    Any body has a resolution to this issue? is this a bug or error in configuration?

    Eric Xu

    the same situation!!!
    is anyone willing to help??


    Okay figured out the solution. Format your namenode (Hadoop namenode -format) and while doing so make sure there is no folder called “nn” (do not create this manually, format will take care of it). Not sure why this behaves like this, but certainly it does the trick.

    Eric Xu

    I formatted the namenode successfully.
    But when I start the service, the master and regionserver still cannot be opened.

    Any advise?

    Eric Xu

    here is my log:

    2013-08-19 17:14:46,489 ERROR PriviledgedActionException as:hadoop File /mapred/system/ could only be replicated to 0 nodes, instead of 1
    2013-08-19 17:14:46,489 INFO org.apache.hadoop.ipc.Server: IPC Server handler 4 on 8020, call addBlock(/mapred/system/, DFSClient_NONMAPREDUCE_-1139472107_1, null) from error: File /mapred/system/ could only be replicated to 0 nodes, instead of 1 File /mapred/system/ could only be replicated to 0 nodes, instead of 1
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(
    at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(
    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.apache.hadoop.ipc.RPC$
    at org.apache.hadoop.ipc.Server$Handler$
    at org.apache.hadoop.ipc.Server$Handler$
    at Method)
    at org.apache.hadoop.ipc.Server$

    Eric Xu

    any advice?

The forum ‘HDP on Linux – Installation’ is closed to new topics and replies.

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.