Created on 10-17-2017 04:04 AM - edited 09-16-2022 05:24 AM
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.
Created 10-17-2017 04:51 AM
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
Created 10-17-2017 04:51 AM
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
Created 10-18-2017 03:02 AM
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.
Created 10-18-2017 03:18 AM
Thanks for helping out. Restarting the shellinabox service in the sandbox helped me to access the webssh.