Support Questions

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

default username password not working for Hortonworks sandbox 2.3.2 on Azure

avatar
New Contributor

I deployed a hortonworks sandbox on Azure following the guidelines on .http://hortonworks.com/blog/hortonworks-sandbox-with-hdp-2-3-is-now-available-on-microsoft-azure-gallery/. Then, I followed the guidelines on the sandbox welcome page to open Ambari using http://{Ipaddress}:8080 and got to the Ambari login page. When I tried the default username and password admin/admin, it said the combination is invalid. I also tried the cluster username and password, and it did not work either.

Your help is highly appreciated

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Vivian Li See this in the link that you shared

1. ssh into the VM and run the following command as the root user:ambari-admin-password-reset

2. You will be prompted to enter the password. Ambari server will restart.

3. Then run command

ambari-agent restart

4. You can then go to the http://<hostname/ipaddress>:8888 which displays the splash page and click on the Ambari url. Enter the user "admin" and put the password you set previouly in step 2. You should now be able to log in as an Ambari admin.

View solution in original post

24 REPLIES 24

avatar
Master Mentor

@Vivian Li See this in the link that you shared

1. ssh into the VM and run the following command as the root user:ambari-admin-password-reset

2. You will be prompted to enter the password. Ambari server will restart.

3. Then run command

ambari-agent restart

4. You can then go to the http://<hostname/ipaddress>:8888 which displays the splash page and click on the Ambari url. Enter the user "admin" and put the password you set previouly in step 2. You should now be able to log in as an Ambari admin.

avatar
Master Mentor

avatar
New Contributor

Hi Michael and @Neeraj Sabharwal,

I can indeed ssh using the username & password when I created azure sandbox, but after that what can I do to access the ambari website interface or even change the password of "admin"??? or create new root user for ambari?

The sandbox username & password does not work for ambari login website

Also, whatever command I use in ssh with the sandbox user, it will say "Permission denied"

Please help me!!!!

avatar
Explorer

I have tried to change the password, but I am getting error of permission denied. Can some one help as Ambari is not working for me either. Same situation tried all combination of passwords.

avatar
Master Mentor

@Muhammad Ali

FYI ..Michael was able to resolve this. Make sure that there is no typo in your password

Actually Neeraj's second comment worked for me. Thanks!

One clarification:

For step 1: use

ssh <username>@<ipaddress>

or

ssh <username>@<hostname>

where <username> is the username you define when creating the sandbox. You will also be prompted to enter the password defined when creating the sandbox.

avatar
Explorer

I got the error of Permission denied after run cmd:ambari-admin-password-reset. Any idea? The SSH username/password are the username/password my defined when creating the sandbox.

avatar
Master Mentor

@Vivian Li

Dont you think its related to azure-sandbox-login.pdf

avatar
Explorer

Tried user:azure password:azure and even can't login.

avatar
Master Mentor
@RYAN Gao

Try this one out courtesy of Neeraj

1. ssh into the VM and run the following command as the root user:ambari-admin-password-reset

2. You will be prompted to enter the password. Ambari server will restart.

3. Then run command

ambari-agent restart

4. You can then go to the http://<hostname/ipaddress>:8888 which displays the splash page and click on the Ambari url. Enter the user "admin" and put the password you set previouly in step

5. You should now be able to log in as an Ambari admin.

avatar
Explorer

I got the error of Permission denied after run cmd:ambari-admin-password-reset. The SSH username/password are the username/password my defined when creating the sandbox because user:admin pasword:admin doesn't allow me in.