Support Questions
Find answers, ask questions, and share your expertise

ambari admin password reset , command not found

I am facing 2 problem and i do not know how to troubleshoot.

1.I am not able to login to ambari interface this morning.

I want to reset the password using the ambari reset password command but git bash does not know this command.

2. I cannot access the http://127.0.0.1:8888/ interface(as you can see on the screenshot)

Can you help me please?

ambari8888.png

commandnotfound.png

18 REPLIES 18

Super Mentor

@Oriane

If you are using HDP 2.5 sandbox in VM then Regarding the command "ambari-admin-password-reset command not found" not found issue, you can find the answer in :

https://community.hortonworks.com/questions/58247/hdp-25-sandboxvm-commandsscripts-are-not-found.htm...

- One other way to reset ambari-admin password will be to update the ambari database "users" table entry as following:

[root@sandbox tmp]# psql -Uambari ambari
Password for user ambari: 
psql (8.4.20)
Type "help" for help.

ambari=>  update ambari.users set user_password='538916f8943ec225d97a9a86a2c6ec0818c1cd400e09e03b660fdaaec4af29ddbb6f2b1033b81b00' where user_name='admin';

- Your screenshot also suggest that you are trying to start the agent with a wrong command:

ambari agent start  (incorrect)

Correct command will be :

ambari-agent start

For server it should be

ambari-server start

.

The following link provides a great detail of using Sandbox:

http://hortonworks.com/hadoop-tutorial/learning-the-ropes-of-the-hortonworks-sandbox/#install-sandbo...

Hi @Jay,

Thanks for your response.

the command "ambari-agent start " is not found (as you can see on the screen joined)updatenotwork.png, I am using a virtualbox and not a VM , hdp 2.5 in a docker. The ssh client i am using is git bash to access the sandbox. the command "update ...." does not work too. updatenotwork.png

Super Mentor

@Oriane

Additionally regarding the "http://127.0.0.1:8888" not accessible, I will suggest you to please check the "Port Forwarding" if it is setup properly or not?

The following link provides more detailed information about port forwarding and Guest Port configuration:

https://community.hortonworks.com/articles/65914/how-to-add-ports-to-the-hdp-25-virtualbox-sandbox.h...

I see in the docker that the port 8888 is used for the tutorials. Is it correct? ambari8888-1.png

Super Mentor

@Oriane

Wonderful and good to know that the mentioned link helped you to fix the issue. It will be really great if you mark this thread as Answer "Accepted" that way it will be useful for other users as well.

Hi @Jay,

Thanks for your response.

the command "ambari-agent start " is not found (as you can see on the screen joined)updatenotwork.png, I am using a virtualbox and not a VM , hdp 2.5 in a docker. The ssh client i am using is git bash to access the sandbox. the command "update ...." does not work too.

Super Mentor

@Oriane

Also the "update" command was actually Postgres command for that you will need to login to Ambari DB. As mentioned in my previous update. Default Ambari DB username is "ambari" and password is "bigdata"

Example:

[root@sandbox tmp]# psql -Uambari ambari
Password for user ambari: bigdata
psql (8.4.20)
Type "help" for help.
     
ambari=>  update ambari.users set user_password='538916f8943ec225d97a9a86a2c6ec0818c1cd400e09e03b660fdaaec4af29ddbb6f2b1033b81b00' where user_name='admin';

Are you able to access the Web Terminal: http://127.0.0.1:4200 ? If yes then can you try running the same commands from the web terminal to see if it works?

Ideally the commands should be present in the following locations:

[root@sandbox tmp]# which ambari-server
/usr/sbin/ambari-server

[root@sandbox tmp]# which ambari-agent
/usr/sbin/ambari-agent

[root@sandbox tmp]# which ambari-admin-password-reset
/usr/sbin/ambari-admin-password-reset

.

Thanks @Jay for your answer.

I am a newbie on Hadoop so excuse me for my strange questions.

I am unable to log through the port 4200 as you can see on the screen

4200loginfailed.png.

The sandbox is switched on as you can see on the screensandboxon.png

The command connecting to ambari using postgres not work too as you can see on the picture

psqlnotfound.png

Super Mentor

@Oriane

I noticed that you are using port 2122 in order to do ssh

 ssh root@127.0.0.1 -p 2122

.

Can you please try the 2222 port instead and then see of it works

 ssh root@127.0.0.1 -p 2222

.