Support Questions

Find answers, ask questions, and share your expertise

unable to log on to ambari

avatar

Hi All,

I am a newbie to Hadoop and need your help to configure HotonWork Sandbox. I have installed Sandbox and can connect to Welcome Page using localhost:8888. However , another URL localhost:8080 is not accessible. I tried to implement all the options mentioned on multiple threads but failed to get through. Also, as somewhere mentioned on the post that amabari log is put on the location /var/log/ambari-server/ambari-server.log and looking at the log i could get the clue . But , this path is not accessible to me as a root user. Attached is the screenshot4568-1.png

1 ACCEPTED SOLUTION

avatar
Master Guru
@Manish Bhandari

Please try below steps:

1. You are logged in as root user so you can easily change permission of any file/directory using below command

chown root:root -R /var/log/ambari-server

2. Try to check logs again by less/cat command

3. Please check if your ambari-server is running

service ambari-server status

4. If its not running then please try to start it using below command

service ambari-server start

5. If ambari-server is running, can you please check if it is listening on port 8080?

netstat -tulpn|grep 8080

6. If above command shows that your ambari-server is running however you are still unable to access it from your local machine then please check if your home/corporate firewall is blocking connection to 8080. Please try to telnet to 8080 from your local machine, if you are using windows then try to run telnet command from cmd

telnet <ambari-server-ip-address> 8080

7. If you find that your ambari-server is running and listening on 8080 then you can check your virtualbox port frowarding settings, please refer below link to verify your VirtualBox network settings

https://community.hortonworks.com/questions/17168/lab-0-setup-start-the-sandbox-vm-and-open-ambari.h...

8. If above step doesn't work then you can create SSH tunnel and can access ambari UI via http://localhost:8080 from your browser

Run below command from your terminal if you are using Mac/Linux

ssh -L 8080:<ambari-server-ip-address>:8080 root@<ambari-server-ip-address>

Hope this information helps!

Happy Hadooping 🙂

View solution in original post

6 REPLIES 6

avatar
Master Guru
@Manish Bhandari

Please try below steps:

1. You are logged in as root user so you can easily change permission of any file/directory using below command

chown root:root -R /var/log/ambari-server

2. Try to check logs again by less/cat command

3. Please check if your ambari-server is running

service ambari-server status

4. If its not running then please try to start it using below command

service ambari-server start

5. If ambari-server is running, can you please check if it is listening on port 8080?

netstat -tulpn|grep 8080

6. If above command shows that your ambari-server is running however you are still unable to access it from your local machine then please check if your home/corporate firewall is blocking connection to 8080. Please try to telnet to 8080 from your local machine, if you are using windows then try to run telnet command from cmd

telnet <ambari-server-ip-address> 8080

7. If you find that your ambari-server is running and listening on 8080 then you can check your virtualbox port frowarding settings, please refer below link to verify your VirtualBox network settings

https://community.hortonworks.com/questions/17168/lab-0-setup-start-the-sandbox-vm-and-open-ambari.h...

8. If above step doesn't work then you can create SSH tunnel and can access ambari UI via http://localhost:8080 from your browser

Run below command from your terminal if you are using Mac/Linux

ssh -L 8080:<ambari-server-ip-address>:8080 root@<ambari-server-ip-address>

Hope this information helps!

Happy Hadooping 🙂

avatar

Thanks for your inputs @Kuldeep Kulkarni . I will try them and get back to you. thanks again.

avatar

Hi @Kuldeep Kulkarni,

At the outset, thanks for helping me . I have tried all the options you mentioned but none of them is working. However , I just went through the prerequisite and it is mentioned that we should have at least 8GB RAM if one want to access Ambari. I have total 4 GB RAM laptop and out of which I have allocated 2 GB to virtualBox. My question - do you think because of less memory I allocated to virtual box stopping Ambari URL ?

Thanks

avatar
Master Guru

@Manish Bhandari - Yes thats correct.

Please have a look at http://hortonworks.com/wp-content/uploads/2016/02/Import_on_Vbox_3_1_2016.pdf for minimum requirements.

avatar
Super Guru

Hi @Manish Bhandari

Total 4GB physical ram on laptop and running running HDP sandbox over virtual box doesn't seems a feasible idea :). I believe you need at least 8GB to run HDP sandbox. Please try this on bigger RAM size laptop.

Also in the screenshot you are trying to run the *.log file instead of opening it in vi editor or through cat command, please use vi editor or cat/less command and see what are the error messages log file has.

avatar
Super Collaborator

@Manish Bhandari .. It could be that Ambari service is not started may be due to memory constraints .

Please review the sandbox requirement.

http://hortonworks.com/wp-content/uploads/2016/02/Import_on_Vbox_3_1_2016.pdf

"If you wish to enable services such as Ambari, HBase, Storm, Kafka, or Spark please ensure you have at least 10 Gb of physical RAM in order to run the VM using 8 GB."