It can be done in the Ambari Portal itself or via the Ambari API.  Go to the 
Admin section and there should be an option to edit users there.

On the API, a PUT call to the user record should let you update it:

PUT /api/v1/users/admin

{
    "Users": {
        "user_name": $desired_username,
        "old_password": $old_password,
        "password": $new_password
     }
}

This is easily done with the Python ambari client I wrote, if you're using 
Python 2.7 (still need to add support for other versions).  It's probably also 
easy using the Groovy client if you're on the JVM, but I don't know the syntax 
for it.

https://github.com/jimbobhickville/python-ambariclient

client.users(user_name).update(old_password=old_password, 
password=new_password, user_name=user_name)

Greg

From: Pratik Gadiya 
<[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Monday, May 11, 2015 at 9:28 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: COMMERCIAL:Changing Ambari Portal Password

Hi All,

Can someone let me know how can I change the ambari portal password ?
Is there any configs file from which I can change that, as I want to automate 
this process ?

Please let me know if any additional information is required.

Thanks & Regards,
Pratik Gadiya

DISCLAIMER ========== This e-mail may contain privileged and confidential 
information which is the property of Persistent Systems Ltd. It is intended 
only for the use of the individual or entity to which it is addressed. If you 
are not the intended recipient, you are not authorized to read, retain, copy, 
print, distribute or use this message. If you have received this communication 
in error, please notify the sender and delete all copies of this message. 
Persistent Systems Ltd. does not accept any liability for virus infected mails.

Reply via email to