Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

linux users are not updating in ranger ui.

Solved Go to solution

linux users are not updating in ranger ui.

New Contributor

I am not able to see new users from linux into ranger ui.

below is the error log of usersync.log

please help to resolve this.

03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] -     GROUP: hadoop
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] -     GROUP: users
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] - USER: aapuser
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] -     GROUP: aapuser
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] - USER: hdfs
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] -     GROUP: hadoop
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] -     GROUP: hdfs
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] -     GROUP: hue
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] - USER: yarn
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] -     GROUP: hadoop
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] - USER: hbase
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] -     GROUP: hadoop
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] - USER: rescue
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] -     GROUP: rescue
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] - USER: mapred
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] -     GROUP: hadoop
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] - USER: hcat
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] -     GROUP: hadoop
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] - USER: systemd-bus-proxy
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] -     GROUP: systemd-bus-proxy
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] - USER: amb_ranger_admin
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] - USER: hive
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] - USER: hue
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] -     GROUP: hadoop
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] -     GROUP: users
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] - USER: testuser
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] -     GROUP: testuser
03 Jan 2019 12:02:15  WARN UnixUserGroupBuilder [UnixUserSyncThread] - DEPRECATED: Unix backend is configured to use /etc/passwd and /etc/group files directly instead of standard system mechanisms.
03 Jan 2019 12:02:15  INFO UserGroupSync [UnixUserSyncThread] - initializing source: org.apache.ranger.unixusersync.process.UnixUserGroupBuilder
03 Jan 2019 12:02:15  INFO UserGroupSync [UnixUserSyncThread] - Begin: initial load of user/group from source==>sink
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] - INFO: addPMAccount(testuser2)
03 Jan 2019 12:02:15 DEBUG PolicyMgrUserGroupBuilder [UnixUserSyncThread] - INFO: addPMAccount(testuser3)
03 Jan 2019 12:02:15  INFO UserGroupSync [UnixUserSyncThread] - End: initial load of user/group from source==>sink
03 Jan 2019 12:02:15  INFO UserGroupSync [UnixUserSyncThread] - Done initializing user/group source and sink
03 Jan 2019 12:02:18  INFO UnixAuthenticationService [main] - Enabling Unix Auth Service!
03 Jan 2019 12:02:19  INFO UnixAuthenticationService [main] - Enabling Protocol: [SSLv2Hello]
03 Jan 2019 12:02:19  INFO UnixAuthenticationService [main] - Enabling Protocol: [TLSv1]
03 Jan 2019 12:02:19  INFO UnixAuthenticationService [main] - Enabling Protocol: [TLSv1.1]
03 Jan 2019 12:02:19  INFO UnixAuthenticationService [main] - Enabling Protocol: [TLSv1.2]
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: linux users are not updating in ranger ui.

New Contributor

The problem is resolved.

We need to update one property for that

ranger.usersync.policymanager.mockrun = false

3 REPLIES 3

Re: linux users are not updating in ranger ui.

Super Mentor

@Harish More

Can you please check if you have set the "ranger.usersync.unix.backend=nss" property inside the "ranger-ugsync-site.xml" file after setting up the SSSD?

Please refer to the following article to get more details about this property followed by a usersync restart.

https://community.hortonworks.com/content/supportkb/222504/unable-to-sync-ranger-user-from-local-uni...

Re: linux users are not updating in ranger ui.

New Contributor

Hi @Jay Kumar SenSharma

I dont have LDAP setup and I didn't setup SSSD as well.

Highlighted

Re: linux users are not updating in ranger ui.

New Contributor

The problem is resolved.

We need to update one property for that

ranger.usersync.policymanager.mockrun = false