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.

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

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

New Contributor

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

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

@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 :)

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

New Contributor

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.

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

@subramanyam sibbala,

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

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

New Contributor

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

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

@subramanyam sibbala,

Can you please post node manager logs to get more info

Don't have an account?
Coming from Hortonworks? Activate your account here