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.

Ambari HDFS NN can not start

Solved Go to solution

Ambari HDFS NN can not start

New Contributor

Ambari HDFS NN can not start, details as following. I have setted 777 to 'hdfs-config.sh', but it doesn't work. I dont know how to resolve it. Is there any idea? Thank you !

/usr/hdp/2.6.0.3-8//hadoop-hdfs/bin/hdfs.distro:Line 39: /root/hadoop-2.7.3/libexec/hdfs-config.sh: not engouth authority;

/usr/hdp/2.6.0.3-8//hadoop-hdfs/bin/hdfs.distro: Lin 317 :exec: : not found
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Ambari HDFS NN can not start

Super Mentor

@frank chen

In the "/usr/hdp/2.6.0.3-8//hadoop-hdfs/bin/hdfs.distro" file the line 38 & 39 are as following:

   HADOOP_LIBEXEC_DIR=${HADOOP_LIBEXEC_DIR:-$DEFAULT_LIBEXEC_DIR}
   . $HADOOP_LIBEXEC_DIR/hdfs-config.sh

Looks like you have some environment variable issue whcih is setting incorrect HADOOP environment variable to point to an incorrect directory.

Can you please check where the "/root/hadoop-2.7.3" is being set at your end? In an ideal HDP environment that path does not exist.

.

4 REPLIES 4

Re: Ambari HDFS NN can not start

Super Mentor

@frank chen

In the "/usr/hdp/2.6.0.3-8//hadoop-hdfs/bin/hdfs.distro" file the line 38 & 39 are as following:

   HADOOP_LIBEXEC_DIR=${HADOOP_LIBEXEC_DIR:-$DEFAULT_LIBEXEC_DIR}
   . $HADOOP_LIBEXEC_DIR/hdfs-config.sh

Looks like you have some environment variable issue whcih is setting incorrect HADOOP environment variable to point to an incorrect directory.

Can you please check where the "/root/hadoop-2.7.3" is being set at your end? In an ideal HDP environment that path does not exist.

.

Re: Ambari HDFS NN can not start

New Contributor

@Jay SenSharma

I found in the env there is already HADOOP_HOME in it.After remove it , ambari works okay.

Thank you!

Re: Ambari HDFS NN can not start

Super Mentor

@frank chen

If this resolves your issue then please click on the "Accept" button and lark this thread as Answered. So that will be useful for other users as well.

Re: Ambari HDFS NN can not start

New Contributor

@Jay SenSharma

Yes. Accepted.

Thank you!