- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
ambari admin password reset , command not found
- Labels:
-
Apache Ambari
Created ‎02-20-2017 10:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Created ‎02-20-2017 10:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 :
- 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:
Created ‎02-20-2017 11:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎02-20-2017 10:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
Created ‎02-20-2017 11:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see in the docker that the port 8888 is used for the tutorials. Is it correct? ambari8888-1.png
Created ‎02-22-2017 03:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎02-20-2017 10:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎02-20-2017 11:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
.
Created ‎02-20-2017 11:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Created ‎02-20-2017 11:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
.
