Created 08-28-2017 05:34 PM
I am a beginner and following the Learning the Ropes tutorial and am unable to connect to the welcome screen. I have spent a few days trying different hosts file modifications and different browser address and none seem to work. I have also tried all these on a PC and Mac trying both VMware and VirtualBox. I have stuck with VirtualBox because it seem like the one people are most using in the forum questions. Can anyone please provide an actual step by step?
Things I have tried:
host file -
127.0.0.1 localhost sandbox.hortonworks.com vs 127.0.0.1 sandbox.hotronworks.com vs 192.168.XX.XX localhost sandbox.hortonworks.com
browser ips:
127.0.01.1:8888 vs localhost:8888 vs 192.168.XX.XX:8888
Firewall is NOT enabled
Also there are three choices when I start the VirtualBox
CentOs Linux (4.12.4-1.elrepo.x86_64) 7 (Core) - this generates a blank screen
CentOS Linux (3.10.0-514.26.2.el7.x86_64) 7 (Core) - this generates a blank screen
CentOS Linux (0-rescue-6f5d5e9d826b4471ad0elf7a92e697dd) 7 (Core) - this works and brings up the screen seen in the tutorial
Can someone explain this? Sorry I am a true beginner.
Created 08-28-2017 06:47 PM
Hi @John Koop
On your local laptop, you can use a text editor add an entry to your hosts file (/etc/hosts if you are using a *nix or Mac machine) that looks like the following:
127.0.0.1 sandbox.hortonworks.com sandbox
This allows your local laptop/PC to resolve "sandbox.hortonworks.com" in a browser to the IP address for your local host of 127.0.0.1.
When you import the appliance to VirtualBox, you can start the VM and as you have already noted, boot into the third option for Linux OS's to start the Hortonworks Sandbox Software. When the software boots, you should see a screen that advises you to go to the start page of http://127.0.0.1:8888 or http://sandbox.hortonworks.com:8888
This start page contains some introduction material, as well as links to other areas like Ambari (http://sandbox.hortonworks.com:8080).
You should be able to follow the tutorial once you are booted into the corrected OS (third one), and able to bring the screens in a browser.
Created 08-28-2017 07:41 PM
Thanks for the quick response, but I am still having issues. Here are screenshots.
I launch the Hortonwork's Sandbox Software and get 1.jpg
My hosts file is 2.jpg
Using both http://127.0.0.1:8888 or http://sandbox.hortonworks.com:8888 in Chrome i get 3.jpg and 4.jpg.
Any ideas?Created 08-28-2017 08:30 PM
@John Koop
I have exactly the same sandbox , for the network I used Bridged Adapter
During boot you will see the IP allocated to the sandox take note
You will need this to get the correct IP address assigned to the sandbox in the /etc/hosts.
On the first screenshot press ALT+F5 to get the login then I think root/hadoop
Use that IP to update your /etc/host Its advisable to leave the first 2 default lines
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 IP_from_above sandbox.hortonworks.com sandbox
Then use this new hostname FQDN or short name eg:
http://sandbox:8080
Hope that helps
Created 08-28-2017 08:35 PM
i've the same problem..
http://127.0.0.1:8080 (instead of port 8888) works on my part
,i've the same issues.. but if you go to port 8080 (instead of 8888) you should go directly to the ambari login page
not that, that solves the problem, but it a temporarly workaround
Created 08-28-2017 09:17 PM
Update to my earlier posting
Once on the linux prompt now you need to ssh into docker container, not the VM. Do this: #
ssh -p2222 root@127.0.0.1
password hadoop you will be requested to change the root password do that
There after you can now reset the ambari admin password
# ambari-admin-password-reset
After the successful change of the ambari admin password.
Ambari will restart and now you can log on using port 8080 and user/password admin/xxxx frm above
Hope that helps
Created 08-29-2017 01:19 AM
From your attached screenshot looks like 8888 port is not accessible outside sandbox which should not happen. So we can do the following testing to check few things:
1. Login to Sandbox and check if the port 8888 is actually opened.
# ssh root@127.0.0.1 -p 2222 # netstat -tnlpa | grep 8888
.
2. Also please check the default "/etc/hosts" inside the sandbox which usually looks like something as following if you have not modified it. "below is output from my HDP 2.6" sandbox.
[root@sandbox ~]# cat /etc/hosts 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 172.17.0.2 sandbox.hortonworks.com sandbox
3. If we see that the port is opened then we will need to check if by default Firewall is not causing any issue:
# service iptables status # service iptables stop
.
4. Next we will check if the Port forwarding is correct and the 8888 port is unblocked and allows port forwarding. Please see the below link for port forwarding configuration and validation:
5. Still if you face any issue then try restarting the HDP Sandbox and then try again.
6. If the issue still occurs then try re importing the HDP sandbox images and then try again.
.
Reference: For step by step Sandbox installation the following link is useful: https://hortonworks.com/hadoop-tutorial/learning-the-ropes-of-the-hortonworks-sandbox/
Created 08-29-2017 06:34 AM
Did you read my update ?
Created 08-29-2017 03:05 PM
Hi @John Koop
I saw the screenshots, screenshot #1 looks good. Once you are there, can you access Ambari on http://127.0.0.1:8080 ? If so, you can start the tutorials, the welcome page on port 8888 is not really mandatory.
Created 08-29-2017 05:00 PM
I did thank you. However, I am still unsuccessful. See
6.jpg where I attempted your answer.
7.jpg where I attemped @Jay SenSharma and your answers