Created 03-16-2017 09:30 PM
Created a new HDP2.5 Sandbox on Azure today. I can log into Ambari Dashboard for my old HDP2.4 Sandox using http://host:8080 or http://host:8888 but not with my new HDP2.5 one. It just times out. I tried ssh'g into my Sandbox to check if Ambari was running and/or start it manually but no luck. Any advice anyone?
[root@sandbox ~]# ambari-agent-password-reset -bash: ambari-agent-password-reset: command not found [root@sandbox ~]# ps -ef | grep Ambari root 4772 1 2 18:53 ? 00:03:13 /usr/lib/jvm/java/bin/java -server -XX:NewRatio=3 -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -XX:CMSInitiatingOccupancyFraction=60 -XX:+CMSClassUnloadingEnabled -Dsun.zip.disableMemoryMapping=true -Xms512m -Xmx2048m -XX:MaxPermSize=128m -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 7473 1 0 18:56 ? 00:00:00 /usr/bin/python /usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py start root 18654 18552 0 21:12 pts/1 00:00:00 grep --color=auto Ambari [root@sandbox ~]# ambari-server start -bash: ambari-server: command not found [root@sandbox ~]# yum list | grep ambari-agent Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast [root@sandbox ~]# rpm -qa | grep ambari-server [root@sandbox ~]#
Created 03-18-2017 08:42 PM
@jwhitmore solved this problem with his detailed advice on this post: https://community.hortonworks.com/questions/79042/step-12-not-showing-welcome-page-as-mentioned.html
Created 03-16-2017 09:50 PM
@Suzanne Dimant, From the output of ps -ef | grep Ambari, It seems ambari server (pid=4772) and agent (pid=7473) are running. There has been few issues noticed in HDP2.5 sandbox regarding ambari login. Please follow below HCC thread.
https://community.hortonworks.com/questions/57064/hdp25-on-virtualbox-and-ambari-login-url.html
Created 03-16-2017 10:09 PM
Thanks yvora ... but I'm wondering ... if the server and agent are running then howcome the 'ambari-agent-password-reset' can't be found?
Created 03-16-2017 10:51 PM
In order to ambari-agent-password-reset to work, the agent should be running fine. Can you please check ambari agent logs? You can find ambari-agent logs at /var/log/ambari-agent. Let's check if it has any error/exceptions.
Created 03-16-2017 10:54 PM
@Suzanne Dimant, Also make sure yo do ssh to docker container, not the VM. Refer to
Created 03-16-2017 11:44 PM
yvora - There are no ambari logs at all in /var/log in my HDP2.5 VM; however they do exist in my HDP2.4 VM!
Trying to understand the 2 other questions you shared with me. The first seems to suggest I need to run 'ambari-agent-password-reset' as user hdfs, not root? Not clear on that. I've long since changed my root password, if that's all that's about?
The other one sounds promising but I'm having trouble understanding it. The Azure VM has a Docker container inside it? Wow! I thought they were competing technologies but I just found this announcement: https://azure.microsoft.com/en-us/blog/running-docker-container-on-azure-batch ! So if I'm understanding correctly, I ssh in on port 2222 to log into the Docker container with the VM? Just tried that though and it didn't work (timed out). Same with 2122 (also mentioned in that post).
Created 03-16-2017 11:59 PM
yes, that sounds right.
Created 03-17-2017 12:15 AM
Unfortunately, all of the below variants time-out (where xx.xxx.xx.xxxx is my VM's static IP address). Should I not be using that IP address? FYI I posted a question on that Azure article I referenced above.
ssh root@xx.xxx.xx.xxx -p 2222 ssh root@xx.xxx.xx.xxx -p 2122 ssh hdfs@xx.xxx.xx.xxx -p 2222 ssh ambari@xx.xxx.xx.xxx -p 2222
Created 03-17-2017 12:30 AM
Found one tutorial for Azure Vms. Here they are using " ssh root@127.0.0.1 -p 2222" . can you try that ?
https://hortonworks.com/hadoop-tutorial/learning-the-ropes-of-the-hortonworks-sandbox/
Created 03-17-2017 10:30 AM
In that tutorial, local host (127.0.0.1) is for folks who have the Sandbox set up on a local VM (VMWare, VirtualBox, etc). It specifically says that "In case of Azure, your host can be found under Public IP Address on the dashboard." Further down in the document it says to use 'ssh <username>@<host> -p 22' to ssh into the Sandbox on Azure. Another document says to set up port-forwarding and log in as 'azure' but it doesn't tell you want azure's default password is so that doesn't 100% work:
https://hortonworks.com/hadoop-tutorial/deploying-hortonworks-sandbox-on-microsoft-azure/