Member since
11-30-2016
4
Posts
1
Kudos Received
0
Solutions
12-01-2016
06:00 AM
@jss - thank you, that worked. Apparently the documentation I was looking at was incorrect or outdated or something. In either case, setting up the JSON the way you showed worked like a champ!
... View more
12-01-2016
04:53 AM
Interesting, that differs slightly from the other documentation on the REST API I found here: https://community.hortonworks.com/articles/50102/managing-ambari-users-and-groups-using-rest-api.html At any rate, I appreciate the information and I will give that a try shortly. Thanks!
... View more
11-30-2016
10:29 AM
I am working on automating the installation and provisioning of clusters, which includes installing Ambari and using a Blueprint via the API. This is all working fine, but I have one more thing which I'm having trouble with, and that is changing the Ambari password during the overall provisioning process (I'm referring to my process here, not the Ambari cluster creation process). What I do NOT want is to leave newly provisioned Ambari installs sitting around with the default "admin/admin" credentials, and I also can't have a human going in to change this every time. I've tried the REST API, but even though the call appears to execute correctly (eg, no errors are returned), the new password never takes effect. I thought about using the ambari-admin-password-reset command via ssh, but my Ambari install (using 2.1.0) doesn't appear to have that command. I've double checked that the agent is running, and I've tried it as the root user, and in every case, it yields a "command not found" error. I also thought about using JDBC, connecting directly to Postgres, and munging the password directly, but I'm not sure which hash algorithm Ambari uses, and/or where it stores the salt (if one is used). If anyone can provide any advice on how to make any or all of these approaches work, it would be greatly appreciated. Right now I'm about to tear my last hair out fighting with this.
... View more
Labels:
- Labels:
-
Apache Ambari