Support Questions

Find answers, ask questions, and share your expertise

Not able to connect to Ambari or SSH to HortonWorks Sandbox

avatar
Explorer

Hi, I am facing the basic issue of connecting to Hortonworks Sandbox, could you please help, I googled for it, tried different network settings and switching off Firewall, etc..but no result...

( Ambari) http://127.0.0.1:8080/ giving me "127.0.0.1 refused to connect." error

ssh to maria_dev@127.0.0.1 for port 2222 using putty giving me "Network Error:Connection Refused".

I am using Windows 7 Laptop, HDP_2.5_virtualbox, VirtualBox-5.1.18-114002-Win

Thanks

Jose

1 ACCEPTED SOLUTION

avatar
Explorer

Finally I solved the problem.

Changed the VirtualBox-->Settings-->Network-->Adapter 1--> Changed to "Host only Adapter" , Advanced-->Promiscuous mode "Allow all"..

Then in File-->Preferences-->NetWork-->Host Only Networks-->Double Click-->DHCP Server-->Enable Server-->

There "Lower Address Bound" is the the connecting ip(192.168.56.101)

Amari Connected using http://192.168.56.101:8080

SSH through putty using maria_dev@192.168.56.101 on port 2222

Thank you

Jose

View solution in original post

6 REPLIES 6

avatar
Master Mentor

@Jose Johny

If it is a fresh Sandbox import you have done on your VirtualBox then i will suggest you to please remove your sandbox and then freshly do the "VirtualBox --> File (Menu) --> Import Appliance"

.

If you can not do the above then please refer to the following article: https://community.hortonworks.com/articles/65914/how-to-add-ports-to-the-hdp-25-virtualbox-sandbox.h... Specially the port unblock section to see if you have the ports properly unblocked.

.

Also please check the "VirtualBox -> Preferences -> Network (on the left menu bar)" Check if the "NAT" is configured properly or not.

avatar
Explorer

@Jay SenSharma

Thank you for answering the question...I tried all the options mentioned still I am unable to access sandbox from local browser or through SSH client....

I even added 8440 for ambari agent ...I could able to see port in "docker ps" command but not worked from browser...

Also still unclear how to access it through putty....

Jose

avatar

@Jose Johny

Would it be possible to get a screenshot of what your "docker ps" looks like? Thanks!

avatar
Explorer

@Edgar Orendain

Please find "docker ps" screenshot.

14576-hdp25-dockerps.jpg

thx

Jose

avatar
Explorer

Finally I solved the problem.

Changed the VirtualBox-->Settings-->Network-->Adapter 1--> Changed to "Host only Adapter" , Advanced-->Promiscuous mode "Allow all"..

Then in File-->Preferences-->NetWork-->Host Only Networks-->Double Click-->DHCP Server-->Enable Server-->

There "Lower Address Bound" is the the connecting ip(192.168.56.101)

Amari Connected using http://192.168.56.101:8080

SSH through putty using maria_dev@192.168.56.101 on port 2222

Thank you

Jose

avatar
New Contributor

ssh maria_dev@xxx.xxx.xxx.xxx -p 2222

Enter password maria_dev