Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Ambari HDFS NN can not start

avatar
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

avatar
Master 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.

.

View solution in original post

4 REPLIES 4

avatar
Master 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.

.

avatar
Contributor

@Jay SenSharma

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

Thank you!

avatar
Master 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.

avatar
Contributor

@Jay SenSharma

Yes. Accepted.

Thank you!