Installation fails on starting namenode

to create new topics or reply. | New User Registration

This topic contains 1 reply, has 2 voices, and was last updated by  Larry Liu 2 years, 6 months ago.

  • Creator
  • #13390

    Niels Basjes


    I’ve been trying to install HDP 2 on a few old desktop systems to see what it the differences are with CDH.
    I use CentOS 6 64bit and after having installed it all the Ambari gui shows it failed during the startup of HDFS.
    After some searching I’ve found the actual error:

    “\”Thu Jan 10 12:33:18 +0100 2013 /Stage[2]/Hdp2-hadoop::Namenode/Hdp2-hadoop::Service[namenode]/Hdp2::Exec[su – hdfs -c ‘/usr/lib/hadoop/sbin/ –config /etc/hadoop/conf start namenode’]/Exec[su – hdfs -c ‘/usr/lib/hadoop/sbin/ –config /etc/hadoop/conf start namenode’]/returns (notice): log4j:ERROR Could not find value for key log4j.appender.RFAS\””,
    “\”Thu Jan 10 12:33:18 +0100 2013 /Stage[2]/Hdp2-hadoop::Namenode/Hdp2-hadoop::Service[namenode]/Hdp2::Exec[su – hdfs -c ‘/usr/lib/hadoop/sbin/ –config /etc/hadoop/conf start namenode’]/Exec[su – hdfs -c ‘/usr/lib/hadoop/sbin/ –config /etc/hadoop/conf start namenode’]/returns (notice): log4j:ERROR Could not instantiate appender named \\\”RFAS\\\”.\””,

    So I added these extra lines to /etc/hadoop/conf/
    log4j.appender.RFAS.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n

    Now when I run this command (manually) I get this error in the logfile: NameNode is not formatted.

    Now I know how to do things like that but Ambari only offers to reinstall the cluster and start over (well I tried that a few times and it doesn’t work).

    I have two questions:
    1) Are these above points simply “known bugs” in the installation?
    2) How do I continue the installation after I’ve fixed the underlying error (like I did above)?

    Niels Basjes

Viewing 1 replies (of 1 total)

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

  • Author
  • #13394

    Larry Liu

    Hi, Niels,

    Thanks for trying HDP.

    From the error you get “ NameNode is not formatted.”, it seems the Namenode is not formatted successfully during HDFS startup. Can you please get the log files from /var/log/hadoop/hdfs and ftp to us:

    In order to continue, you may try to format by running the following command as root:

    su – hdfs -c “/usr/lib/hadoop/bin/hadoop namenode -format”

    Hope this helps.


Viewing 1 replies (of 1 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.