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.

hdfs, hadoop and hive command not found, HDP-2.4

Highlighted

hdfs, hadoop and hive command not found, HDP-2.4

New Contributor

On this hortonworks sandbox, I have installed XAMPP server to run my front end scripts which in backend will talk to hadoop services like HBase and Hive, etc. In installing XAMPP server, the only thing I did was - sudo service httpd stop to start the xamp services. However now on this same box, I am not able to communicate with Hive, Hadoop, etc. This is the error it's throwing (:-) -bash: (hadoop): command not found

similarly for ambari.

Can some one help me understand what is the trouble I have caused, and how do I go on to fix it. I think the PATH_VARIABLE has been changed or something. Can some help, please ?

1 REPLY 1

Re: hdfs, hadoop and hive command not found, HDP-2.4

Super Mentor

@Aditya Kumar Roy

Looks like you are not using the correct ssh port (2222) to login to the sandbox that why the commands is missing.

You must do ssh to the Sandbox only on port 2222 and then you should be able to access all those commands without any issues.

Example:

# ssh root@127.0.0.1 -p 2222

.

Please see: https://community.hortonworks.com/questions/86430/hdfs-not-starting-hdfs-command-not-found.html