Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

namanode fails to start through Ambari

namanode fails to start through Ambari

New Contributor

Hi,

I get the following error when starting Namenode through Ambari.

Am using HDP 2.5 and Ambari 2.4 in a 3 node cluster.

File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",

line 71, in inner result = function(command, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",

line 93, in checked_call tries=tries, try_sleep=try_sleep) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",

line 141, in _call_wrapper result = _call(command, **kwargs_copy) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",

line 294, in _call raise Fail(err_msg) resource_management.core.exceptions.Fail:

Execution of 'ambari-sudo.sh su hdfs -l -s /bin/bash -c 'ulimit -c unlimited ; /usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh --config /usr/hdp/current/hadoop-client/conf start namenode'' returned 1.

3 REPLIES 3
Highlighted

Re: namanode fails to start through Ambari

Could you please add the error from /var/log/hadoop/hdfs/<namenode-log>.log?

Re: namanode fails to start through Ambari

Can you please paste the Namenode logs.

You can also try to restart Namenode manually using the below command:

su -l hdfs -c "/usr/hdp/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh stop namenode"
su -l hdfs -c "/usr/hdp/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh start namenode"

Re: namanode fails to start through Ambari

Super Guru
@ravi condamoor

Please login to your namenode and check logs at /var/log/hadoop/hdfs/hadoop-hdfs-namenode-<namenode-hostname>.log file

It should give you a hint.