Support Questions

Find answers, ask questions, and share your expertise

HDP commands not found in Sandbox 2.5 on Azure

avatar
Contributor

Dear experts,

I am running HDP 2.5 sandbox on azure cloud. I am facing the below problems, request your help

1) I am not able to ssh to the sandbox public ip using root user with password hadoop. I am receiving access denied errors

Using username "root". Using keyboard-interactive authentication. Password: Access denied Using keyboard-interactive authentication. Password:

2) I am not able to find hdfs user and hdfs commands in the sandbox. I have used the login which i created during Azure VM setup

login as: chirunimmala Using keyboard-interactive authentication. Password: Last login: Tue Oct 17 03:10:01 2017 from 103.251.48.2 [chirunimmala@sandbox ~]$ sudo su - hdfs [sudo] password for chirunimmala: su: user hdfs does not exist [chirunimmala@sandbox ~]$ hdfs dfs -ls / -bash: hdfs: command not found [chirunimmala@sandbox ~]$

3) I am not able to use the in built webssh client. I have opened the port 4200 in my NSG in Azure but no luck. I am receiving site cannot be reached error.

40876-webssh-notfound.png

40875-azure-sandbox.png

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Chiranjeevi Nimmala

In order to Use HDP Sandbox you *Must have to use SSH port 2222*

Once you do SSH to the sandbox on SSH port 2222 then only you will be able to access the Commands (like "hdfs").

.

Also the HDP Sandbox provides port forwarding mechanism to access various service ports from your local machine (like Windows). So you should be using the "127.0.0.1" (localhost) address instead of specifying the IP Address.

Example:

ssh  root@127.0.0.1  -p 2222

.

You can also try accessing the web terminal at : http://127.0.0.1:4200

View solution in original post

3 REPLIES 3

avatar
Master Mentor

@Chiranjeevi Nimmala

In order to Use HDP Sandbox you *Must have to use SSH port 2222*

Once you do SSH to the sandbox on SSH port 2222 then only you will be able to access the Commands (like "hdfs").

.

Also the HDP Sandbox provides port forwarding mechanism to access various service ports from your local machine (like Windows). So you should be using the "127.0.0.1" (localhost) address instead of specifying the IP Address.

Example:

ssh  root@127.0.0.1  -p 2222

.

You can also try accessing the web terminal at : http://127.0.0.1:4200

avatar
Contributor

@Jay SenSharma

Command "ssh root@127.0.0.1-p 2222" worked for me to use hadoop commands. However, i am still not able to access web ssh client, please find the details below once i logged into the docker container.

[root@sandbox ~]# service shellinaboxd status shellinaboxd (pid 2717) is running... [root@sandbox ~]# netstat -tulpn | grep 4200 [root@sandbox ~]# sandbox-version Sandbox information: Created on: 25_10_2016_08_11_26 for Hadoop stack version: Hadoop 2.7.3.2.5.0.0-1245 Ambari Version: 2.4.0.0-1225 Ambari Hash: 59175b7aa1ddb74b85551c632e3ce42fed8f0c85 Ambari build: Release : 1225 Java version: 1.8.0_111 OS Version: CentOS release 6.8 (Final)

I am seeing port 4200 is not listening and shellinabox service is running fine. Please help me on this.

avatar
Contributor

@Jay SenSharma

Thanks for helping out. Restarting the shellinabox service in the sandbox helped me to access the webssh.