Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

CAN NOT CONNECT TO SANDBOX USING PUTTY OR WEB SHELL !

avatar

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

avatar
Master 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

avatar
Master 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 

.

avatar

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

avatar

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

avatar
Master 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 /

.

avatar

Thank you !