Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

CAN NOT CONNECT TO SANDBOX USING PUTTY OR WEB SHELL !

capture.pngI am very new to Horton . I have installed HDP Sandbox on oracle Virtualbox. However, can't access to the sandbox neither from web client shell , neither from putty shell . Please, can anybody help ?

ssh: connect to host 127.0.0.1 port 2222: Connection refused

ipconfig comand is in the attach.

1 ACCEPTED SOLUTION

Super Mentor

@voca voca

Screenshot says that you are already inside the Sandbox in your terminal.

Also the output of "hostname -f" also proves that you are alredy logged in to the sandbox

# hostname -f     
  sandbox.hortonworks.com

you should be able to run your HDFS commands in the same terminal.

example:

hdfs dfs -ls /

.

View solution in original post

5 REPLIES 5

Super Mentor

@voca voca

From your screenshot it looks like you are already connected to "sandbox" as we see that the prompt says "root@sandbox" so can you please double check that? Or try opening a new terminal and then run the same command:

ssh root@localhost -p 2222

. Enter "hadoop" as password when it asks.

Also in the terminal where you have run the "ifconfig" can you also run the following command to see the hostname?

hostname -f 

.

capture.png Thank u for reply . Here is the new terminal , why it says refused ?

hostname -f says sandbox.hortonworks.com im watching this tutorial https://hortonworks.com/hadoop-tutorial/getting-started-hdf-sandbox/ Open your terminal (mac and linux) or putty (windows). Type the following command to access the Sandbox through SSH:

# Usage:
      ssh <username>@<hostname>-p <port>;# Example:
      ssh root@127.0.0.1-p 12222;

But says refused.

My user is root and i changed the password into quicktechie

Super Mentor

@voca voca

Screenshot says that you are already inside the Sandbox in your terminal.

Also the output of "hostname -f" also proves that you are alredy logged in to the sandbox

# hostname -f     
  sandbox.hortonworks.com

you should be able to run your HDFS commands in the same terminal.

example:

hdfs dfs -ls /

.

Thank you !

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.