Community Articles
Find and share helpful community-sourced technical articles
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.
Labels (2)

Changing the amb_ranger_admin password is possible. This user password is stored in two different locations. If for any reason there is difference between them you will run into issues. On this article I will go over the locations and steps to change the password.

Locations

1. The amb_ranger_admin user and password exist in Ranger Admin database (encrypted) by default as an internal user. This user's password is the first location.

68566-rangeradmin-amb-ranger-admin-user.png

2. Ambari keeps a copy of the amb_ranger_admin password to create repositories and default policies for each plugin. This password is stored in ambari database (encrypted) as part of configuration of ranger-env.

"ranger_admin_password" : "SECRET:ranger-env:2:ranger_admin_password", 
"ranger_admin_username" : "amb_ranger_admin",

How to update amb_ranger_admin password?

1. Login to Ranger Admin UI, and navigate to Settions > Users and Groups. Then search for the amb_ranger_admin user and click on the username to edit. Click on the Change Password tab and enter new password.

2. Login to Ambari UI, and navigate to Ranger > Configs > Advanced. Locate Section "Admin Settings" and update password for "Ranger Admin username for Ambari". Then save and restart services if required.

What if passwords are not same?

Usually you will see an Ambari UI alert like the following:

Ranger Admin password check
User:amb_ranger_admin credentials on Ambari UI are not in sync with Ranger

While passwords are mismatched Ambari wont be able to automatically create plugin repositories and policies. Due to this start/restart of any of the ranger plugin enabled services will be delayed, but services eventually will start after exhausting all retries.

Error creating repository. Http status code - 401. 
 {"statusCode":401,"msgDesc":"Authentication Failed"}
Retry Repository Creation is being called
Will retry 4 time(s), caught exception: Error getting <clusterName>_<serviceName> repository for component <serviceName>. Http status code - 401. 
 {"statusCode":401,"msgDesc":"Authentication Failed"}. Sleeping for 8 sec(s)
2,186 Views
Don't have an account?
Coming from Hortonworks? Activate your account here
Version history
Revision #:
2 of 2
Last update:
‎08-17-2019 07:44 AM
Updated by:
 
Contributors
Top Kudoed Authors