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

HDFS Forum

NameNode not starting

  • #58216
    Peter Bulman
    Participant

    Hello,

    I’m facing an issue starting the NameNode after trying to install the xasecure agent, the error in the ambari console is:
    2014-07-31 17:33:37,300 – Link[‘/etc/hadoop/conf’] {‘to’: ‘/etc/hadoop/conf.empty’}
    2014-07-31 17:33:37,301 – Error while executing command ‘start’:
    Traceback (most recent call last):

    Fail: LinkProvider[Link[‘/etc/hadoop/conf’]] trying to create a symlink with the same name as an existing file or directory

    In the config folder I see the following:
    [root@namenode1 hadoop]# pwd
    /etc/hadoop
    [root@namenode1 hadoop]# ls -ltr
    total 60
    lrwxrwxrwx 1 root root 29 Jul 11 13:08 conf-20140731143453 -> /etc/alternatives/hadoop-conf
    drwxr-xr-x 2 root root 4096 Jul 31 14:18 conf.empty
    drwxr-xr-x 2 root root 4096 Jul 31 14:42 conf-20140731144355
    drwxr-xr-x 2 root root 4096 Jul 31 15:27 conf-20140731154220
    drwxr-xr-x 2 root root 4096 Jul 31 15:42 conf-20140731155439
    drwxr-xr-x 2 root root 4096 Jul 31 15:54 conf-20140731161331
    drwxr-xr-x 2 root root 4096 Jul 31 16:18 conf-20140731161945
    drwxr-xr-x 2 root root 4096 Jul 31 16:19 conf-20140731163543
    drwxr-xr-x 2 root root 4096 Jul 31 16:36 conf-20140731163626
    drwxr-xr-x 2 root root 4096 Jul 31 16:41 conf-20140731164331
    drwxr-xr-x 2 root root 4096 Jul 31 16:43 conf-20140731164345
    drwxr-xr-x 2 root root 4096 Jul 31 16:50 conf-20140731165133
    drwxr-xr-x 2 root root 4096 Jul 31 16:52 conf-20140731165510
    drwxr-xr-x 2 root root 4096 Jul 31 16:55 conf-20140731165701
    drwxr-xr-x 2 root root 4096 Jul 31 17:27 conf-20140731173256
    drwxr-xr-x 2 root root 4096 Jul 31 17:32 conf

    Am I right in thinking the conf.empty that trying to be linked at startup is the last good working config?

    Can I therefore delete (rename) the conf folder so the symlink can be created or is this likely to cause further problems?

    Thanks
    Pete

    HDP2.1 multi-node cluster
    6 * CentOS 6.5 Hosts
    java version 1.7.0_51
    Using python /usr/bin/python2.6
    HDP2.1 installed using Ambari Install Wizard with default Postgres DB, Ambari VERSION=”1.5.1.110″

The forum ‘HDFS’ 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.