Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Apache Ambari not starting in hortonworks sandbox

avatar

I am playing with hortonworks sandbox, but I am not able to get Apache Ambari to work.

enter image description here

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

enter image description here

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?

hadoop

1 ACCEPTED SOLUTION

avatar
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
9 REPLIES 9

avatar

Have you tried to run the script start_ambari.sh? It's available in /root/

avatar

Yes I did that. ./start_ambari.sh (multiple times )

avatar

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.

avatar

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

avatar
Guru

you may have something already listening to 8080 port, can you do the same netstat on your Ubuntu host ?

avatar

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)

avatar

@Mohamed Ali Jamaoui @rmolina

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/

avatar

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

avatar
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login