Support Questions

Find answers, ask questions, and share your expertise

Not able to create Ranger HDFS repository

avatar
Super Collaborator

I enabled HDFS ranger plugin and tried restarting HDFS but i am getting below error in logs -

File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py", line 50, in namenode setup_ranger_hdfs(rolling_upgrade = rolling_restart) File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py", line 51, in setup_ranger_hdfs hdp_version_override = hdp_version) File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/setup_ranger_plugin.py", line 73, in setup_ranger_plugin policy_user) File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/ranger_functions.py", line 106, in create_ranger_repository raise Fail('{0} Repository creation failed in Ranger admin'.format(component.title())) resource_management.core.exceptions.Fail: Hdfs Repository creation failed in Ranger admin

Can you let me know how to resolve this issue?

1 ACCEPTED SOLUTION

avatar
Super Guru
@chennuri gouri shankar

Is this new setup ?

Did you tried changing password for "amb_ranger_admin" user ?

If so you need to update the amb_ranger_admin password ("Ranger Ambari admin password") in Ambari and Ranger UI > user/group > amb_ranger_admin password

Let me know if that works.

View solution in original post

2 REPLIES 2

avatar
Super Guru
@chennuri gouri shankar

Is this new setup ?

Did you tried changing password for "amb_ranger_admin" user ?

If so you need to update the amb_ranger_admin password ("Ranger Ambari admin password") in Ambari and Ranger UI > user/group > amb_ranger_admin password

Let me know if that works.

avatar
Super Collaborator

Resetting password worked