Support Questions

Find answers, ask questions, and share your expertise

Hadoop fs -ls command not working on Hortonworks when i reistalled Hadoop.

Explorer

I have reinstalled Hadoop using Ambari on Hortonworks.

All my services started successfully.

somehow Hadoop fs -ls command is giving following error. can some one help me on this?

# hadoop fs -ls /
/usr/hdp/2.6.5.0-292//hadoop/bin/hadoop.distro: line 31: /usr/hdp/2.5.6.0-40/hadoop/libexec/hadoop-config.sh: No such file or directory
/usr/hdp/2.6.5.0-292//hadoop/bin/hadoop.distro: line 180: exec: : not found

5 REPLIES 5

@subramanyam sibbala,

Looks like the executable files are missing. You can try doing the below steps.

1. Re-Install the clients

yum reinstall -y hadoop*

2. Refresh Client configs

Login to Ambari -> Hosts -> Select host where it is failing -> Refresh client configs

.

If this works please take a moment to login and "Accept" the answer 🙂

Explorer

If I reinstall will it affect any ambari related services?

any dependency files may be deleted?

please provide me all steps of reinstallation so that it wont get affect any dependency files.

@subramanyam sibbala,

By reinstall I meant to run only the "yum reinstall -y hadoop*" command. It doesn't affect/delete any files.

Explorer

HI Aditya,

thanks for your response. I rectified it.

I forget to modify Hadoop_home in .bashrc file. I modified it and re ran and now it is working fine.

My yarn node manager is failing. when run, it will run successfully and with in a few seconds it will fail.

I error it is showing like - Node Manger web Ui is unreachable. help me to resolve this please

@subramanyam sibbala,

Can you please post node manager logs to get more info