Created on 04-04-2018 11:05 AM - edited 08-17-2019 09:15 PM
Hi all,
i am new, and i have problems to log with ambari dashboard.
I am using VM of sandboox 2.2.4.2 and i have asigned 4 gb of RAM to VM. My friend used this ram and he doesnt problems.
I used puTTy for connect to my VM, with root 127.0.0.1 and port 2222.
I installed all, and when i try to connect to ambari dashboard i have "Loading" in the page (several hours) and i am not able to connect.
I prove the next:
i) ambari-server status-----> Running
ii) ambari-agent status------> Running
iii) service postgresql status---> Running
iv) Service iptables status------> Firewall not running
v) sestatus ---------------------> Disable
vi) netstat -pan | grep 8080 ---------------------> Listen port 8080
vii) ifconfig --------------> eth (10.0.2.15)--lo(127.0.01)----Running
viii) Prove in others navigators too (Mozilla, Internet Explorer, Chrome)
But my picture during hours is:
Can be the memory ram? or the navigator that block the ip? I dont know why this problem exist!
Thank you very much
Created 04-04-2018 10:35 PM
Don't ignore ...Yes memory is very important, you MUST have a minimum of 8GB to run a sandbox the more you have the better and that the hortonworks recommendation
Can you try these 2 curl commands to validate
Check Ambari status
curl -u admin:admin -G http://ambari_host:8080/api/v1/check
Desired output <?xml version="1.0"?><status> RUNNING</status>
Check HDFS status
curl -u admin:admin -H "X-Requested-by:ambari" -i -k -X GET http://<AMBARI_HOST>:8080/api/v1/clusters/<CLUSTER_NAME>/services/HDFS/
Remember to replace the ambari_host and cluster_name with your actual value your cluster name should be sandbox I think
Created 04-04-2018 11:08 AM
This might happen mostly due to memory constraints.
I will suggest , stopping / killing some of the components running on the Sandbox (kill -9 $HIVE_SERVER2_PID) or some other service components like HBase and then restart the ambari server again to see if it works. You can access the browser console to access the terminal http://localhost:4200 or use the SSH (ssh -p 2222 root@localhost). Once you are able to access the ambari UI then you can either put those unwanted components in Maintenance Mode or increase the RAM.
Also please try using "Incognito Mode" of browser to avoid any browser caching issue.
If you notice any WARNING / ERROR in "/var/log/ambari-server/ambari-server.log" then please share.
Created 04-04-2018 12:00 PM
Thank you very much for your response,
when i try to access to http://127.0.0.1:4200 , i guess this is http://localhost:4200, i have message of You can not access this website , connection refused.
Sorry , because i have very little knowledge in networks!!
Thank you very much again!!
Created 04-04-2018 12:24 PM
I just noticed that your Sandbox version is bit old "sandbox 2.2.4.2" so it might not have the 4200 (Web Terminal functionality).
In that case you will have to try killing those processes using terminal:
# ssh root@localhost -p 2222 Enter Password: hadoop
.
Created 04-04-2018 01:23 PM
I tried your command "ssh root@127.0.0.1 -p 2222" but i obtain message:
ssh: connect to host 127.0.0.1 port 2222: Connection refused
It is rare!
Thank you very much and sorry for the time!
Created 04-04-2018 02:42 PM
Sorry again,
i think that maybe i have problem in connection, because i cant enter to ambari dashboard and i cant conect with code because the error is "Connection refused",
I tried see log, but when i use "/var/log/ambari-server/ambari-server.log, i have message "Permission denied".
I dont understand!!
Thank you very much!!
Created 04-04-2018 08:15 PM
Hi, can someone help me please?
i cant enter to dashboard of ambari.
Thank you very much!!
Created 04-04-2018 08:23 PM
Did you run the below command at any stage ?
# ambari-admin-password-reset
If not please do it and retry usual default is admin/admin
Created 04-04-2018 08:42 PM
Thank you very much,
i am going to apply your command. I am repeat all the steps again!
Created 04-04-2018 08:49 PM