Created 05-22-2017 10:06 AM
I have created a Hortonworks HDP 2.5 sandbox in Azure and encountered a few problems that I need support with. My goal is to download all config files from Ambari. To do so, I believe I need to be logged in as admin, given that the default logon for Ambari (from the sandbox dashboard) did not have this option. To set the password for admin, I tried the following:
- running ambari-admin-password-reset from the Putty shell as root; result: command not found
- running ambari-admin-password-reset from the sandbox shell logged in as root (on localhost 4200); result: command not found
- setting the password for admin by updating the database table for ambari users (followed https://community.hortonworks.com/questions/85419/reset-ambari-admin-password.html). result: successfully reset the password
I then logged on into Ambari as admin and still cannot see the option to export all config files from the left hand side "Actions" sections. Would you please advise?
Also, as a secondary matter, would you please let me know how I can reset the password for the Ambari admin user to something more secure?
Created 05-22-2017 10:10 AM
As you mentioned that you are getting the following error:
running ambari-admin-password-reset from the Putty shell as root; result: command not found
One common cause of this error is that users do not do the ssh to the correct port "2222"
Can you please try the following way to login to the sandbox and then try that command?
# ssh firstname.lastname@example.org -p 2222
Also the "Download All Client Configs" option is added to Ambari Only after Ambari 2.5 so please check your ambari version
# ambari-server --version
Also in order to download the "Individual" client configs you should do the following:
Ambari UI --> HDFS --> Service Action --> Download Client Config (Smae for other individual services)
NOTE: HDP sandbox 2.5 Ships Ambari 2.4 Where as the "Actions -->Download All Client Configs" option is added from Ambaei 2.5. Ambari 2.5 is available as part of Sandbox 2.6
Created 05-22-2017 10:25 AM
Hi @Jay SenSharma, thank you for your prompt answer.
On the first point, I have read about the incorrect port being used for ssh, which is why I used the ssh client from the dashboard (http://localhost:4200) as the second thing I tried. Will look at Putty on port 2222 as well, but I thought the Hortonworks ssh client will be looking at the right port anyway.
Use the SSH client of your choice:
username/password:root / hadoop
If no SSH client is installed, use the built-in web client:
I have just checked the Ambari version I am running and it turns out it is v2.4. Not sure why the latest version is not used, as it was only last Friday that I created the Hortonworks sandbox in Azure. I might download all individual configs instead or try and update Ambari.
Thank you for your help.
Created 05-22-2017 10:26 AM
Regarding your query "Also, as a secondary matter, would you please let me know how I can reset the password for the Ambari admin user to something more secure?"
You can login to UI and perform the following operations:
Ambari UI then click on --> "admin" (Drop Down Menu at top right corner) --> Manage Ambari --> Users
Then you can either create new Users and can create other admin users and then set your own desired password as well. Or else you can reset the ambari admin password as well from the UI itself to something more secure.
Created 05-22-2017 10:30 AM
Thanks for your help. Have reset the password in the Ambari UI.