Created 04-07-2016 11:38 AM
I am playing with hortonworks sandbox, but I am not able to get Apache Ambari to work.
As you can see, when accessing the welcome page of the Hortonworks sandbox, I get a message saying:
Service disabled by default. To enable the service you need to log in as an ambari admin. The ambari admin password can be set by ssh'ing into the vm as root as mentioned in the section "Secure Shell (SSH) Client". Once logged in as root user, execute ambari-admin-password-reset and follow the prompt
I did that but still, when I access the link: 127.0.0.1:8080 it's not working. I checked that the ambari-server is running:
[root@sandbox ~]# service ambari-server status Using python /usr/bin/python2 Ambari-server status Ambari Server running Found Ambari Server PID: 1497 at: /var/run/ambari-server/ambari-server.pid
I checked within the Hortonworks sandbox to confirm that Ambari Server is listening to port number 8080
[root@sandbox ~]# netstat -anop | grep 8080 tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 6320/java off (0.00/0/0) [root@sandbox ~]# [root@sandbox ~]# [root@sandbox ~]# ps aux | grep 6320 root 6320 9.0 4.9 4596612 398396 pts/0 Sl 05:28 3:43 /usr/lib/jvm/java/bin/java -server -XX:NewRatio=3 -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -XX:CMSInitiatingOccupancyFraction=60 -Dsun.zip.disableMemoryMapping=true -Xms512m -Xmx2048m -Djava.security.auth.login.config=/etc/ambari-server/conf/krb5JAASLogin.conf -Djava.security.krb5.conf=/etc/krb5.conf -Djavax.security.auth.useSubjectCredsOnly=false -Xms512m -Xmx2048m -Djava.security.auth.login.config=/etc/ambari-server/conf/krb5JAASLogin.conf -Djava.security.krb5.conf=/etc/krb5.conf -Djavax.security.auth.useSubjectCredsOnly=false -cp /etc/ambari-server/conf:/usr/lib/ambari-server/*:/usr/share/java/postgresql-jdbc.jar org.apache.ambari.server.controller.AmbariServer root 8750 0.0 0.0 8452 908 pts/0 S+ 06:09 0:00 grep 6320 [root@sandbox ~]#
The iptables firewall is not running:
#service iptables status iptables: Firewall is not running.
The port forwarding from Guest to Host is set right
Despite that port forwarding is set right, nothing is listening on port 8080 on the host machine. Telnet yields a "connection refused" error
#telnet 127.0.0.1 8080 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused
How to resolve this?
Created on 04-07-2016 10:12 PM - edited 08-18-2019 04:59 AM
I set the Guest IP address in the port forwarding settings and restarted the VM, now it's working. (don't know why)
Created 04-07-2016 11:46 AM
Have you tried to run the script start_ambari.sh? It's available in /root/
Created 04-07-2016 01:59 PM
Yes I did that. ./start_ambari.sh (multiple times )
Created 04-07-2016 05:16 PM
Could you have a proxy configured within your web browser ?
Can you telnet to port 8080 from your laptop as it looks like something is listening on port 8080 within the VM.
Created 04-07-2016 06:24 PM
Hi, thanks for replying. I cannot telnet the 8080 port
$ telnet 127.0.0.1 8080
Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused
Created 04-07-2016 08:19 PM
you may have something already listening to 8080 port, can you do the same netstat on your Ubuntu host ?
Created 04-07-2016 08:46 PM
I check that also, but nothing is listening on port 8080 on the host machine.
$ sudo netstat -anop | grep 8080 tcp 0 0 127.0.0.1:18080 0.0.0.0:* LISTEN 25792/VirtualBox off (0.00/0/0)
Created 04-07-2016 08:35 PM
I have seen this behavior before. Do you have a pop-up blocker?
You can find the general pattern for key URLs and ids/pwd in this tutorial:
http://hortonworks.com/hadoop-tutorial/learning-the-ropes-of-the-hortonworks-sandbox/
Created 04-07-2016 09:11 PM
I don't think that's the reason. Doing a telnet yields "connection refused"
$ telnet 127.0.0.1 8080
Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused
Created on 04-07-2016 10:12 PM - edited 08-18-2019 04:59 AM
I set the Guest IP address in the port forwarding settings and restarted the VM, now it's working. (don't know why)