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 CMD NOT FOUND ERROR - PUTTY, HORTONWORKS SANDBOX ON AZURE

Highlighted

HADOOP CMD NOT FOUND ERROR - PUTTY, HORTONWORKS SANDBOX ON AZURE

New Contributor

Hi, I recently deployed hortonworks sandbox on azure referring this article - https://hortonworks.com/tutorial/sandbox-deployment-and-install-guide/section/4.I had also added inbound security rules for port 8080, 8888,2222, 4200 followed by configuring ssh tunnel using putty but when I'm running hadoop command in it- hadoop fs -ls / , it gives me an error "hadoop cmd not found".However, I'm able to use Ambari.Also tried using localhost:4200 but it didn't worked.Can someone help me with this.

6 REPLIES 6
Highlighted

Re: HADOOP CMD NOT FOUND ERROR - PUTTY, HORTONWORKS SANDBOX ON AZURE

Super Mentor

@Amit Porwal

You must do SSH on port 2222 when you want to connect to the actual docker container where HDP binaries are installed.

Using terminal:

# ssh root@127.0.0.1 -p 2222
Enter Password: hadoop

.

If you are connecting to Sandbox container then you should use the SSH port as 2222 in the Putty window. (PLease do not use the default SSH port 22).

.

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

https://community.hortonworks.com/questions/141743/hdp-commands-not-found-in-sandbox-25-on-azure.htm...

.

Highlighted

Re: HADOOP CMD NOT FOUND ERROR - PUTTY, HORTONWORKS SANDBOX ON AZURE

New Contributor

@Jay Kumar SenSharma - I tried that but it didn't worked.Added following ports 8080->127.0.0.1:8080 8888->127.0.0.1:8888 9995->127.0.0.1:9995 9996->127.0.0.1:9996 8886->127.0.0.1:8886 10500->127.0.0.1:10500 4200->127.0.0.1:4200 2222->127.0.0.1:2222. Followed by enttering azure IP and changing the port from 22 to 2222. and clicking on open button.

Below screenshot for your reference.

56535-putty1.png

56536-putty2.png

56537-putty3.png

Highlighted

Re: HADOOP CMD NOT FOUND ERROR - PUTTY, HORTONWORKS SANDBOX ON AZURE

New Contributor
@Jay Kumar SenSharm

Awaiting for your response.

Highlighted

Re: HADOOP CMD NOT FOUND ERROR - PUTTY, HORTONWORKS SANDBOX ON AZURE

Super Mentor

@Amit Porwal

You do not need to do SSH on IP Address "52.226.132.62", Please use the localhost address as following:

# ssh root@127.0.0.1  -p 2222
Enter Password: hadoop

.

Highlighted

Re: HADOOP CMD NOT FOUND ERROR - PUTTY, HORTONWORKS SANDBOX ON AZURE

Super Mentor

Can you try the following link to see if there are any missing steps:

https://hortonworks.com/tutorial/sandbox-deployment-and-install-guide/section/4/

Highlighted

Re: HADOOP CMD NOT FOUND ERROR - PUTTY, HORTONWORKS SANDBOX ON AZURE

New Contributor

@Jay Kumar SenSharma - I appreciate your quick response and yes I followed all the steps as mentioned in the link - https://hortonworks.com/tutorial/sandbox-deployment-and-install-guide/section/4/ but it didn't worked.Any Suggestion on how should I proceed further.

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