Support Questions

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

No command 'hdfs' found, did you mean

avatar
New Contributor

hi,this is vishwanath.

i am getting following error when i run the command "hdfs"....

No command 'hdfs' found, did you mean:

2 REPLIES 2

avatar
Master Mentor

@vishwanath pr

If you are using Sandbox and getting this message "No command 'hdfs' found" then it means you might not have done the SSH to Sandbox on port 2222 (which is mandatory for these commands to work). Similar issue reference

# ssh root@127.0.0.1  -p 2222
# hdfs dfs -ls /tmp

.

If you are getting this message in a Non-Sandbox environment then you must make sure that the "HDFS_CLIENT" package or component is installed on that host. You can install the clients on the host from Ambari UI

Ambari UI --> Hosts (Tab) --> Click on Desired Hostname --> Click on "Install Clients"

.

avatar
Super Guru

Hi @vishwanath pr,

Try installing the HDFS clients and run the commands.

yum install -y hadoop hadoop-hdfs hadoop-libhdfs hadoop-yarn hadoop-mapreduce hadoop-client openssl

Thanks,

Aditya