Linux users and groups to do not sync correctly into the Ranger UI.
The following error is seen in the /var/log/ranger/usersync/usersync.log:
01 Sep 2016 11:51:38 WARN UnixUserGroupBuilder [UnixUserSyncThread] - Group Name could not be found for group id: [7201659]. Skipping adding user [zabbix] with id [996].
01 Sep 2016 11:51:38 WARN UnixUserGroupBuilder [UnixUserSyncThread] - Unix UserId: []: can not be parsed as valid int. considering as -1.
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:592)
at java.lang.Integer.parseInt(Integer.java:615)
at org.apache.ranger.unixusersync.process.UnixUserGroupBuilder.buildUnixUserList(UnixUserGroupBuilder.java:153)
at org.apache.ranger.unixusersync.process.UnixUserGroupBuilder.buildUserGroupInfo(UnixUserGroupBuilder.java:102)
at org.apache.ranger.unixusersync.process.UnixUserGroupBuilder.init(UnixUserGroupBuilder.java:65)
at org.apache.ranger.usergroupsync.UserGroupSync.run(UserGroupSync.java:55)
at java.lang.Thread.run(Thread.java:745)
This is caused by an incorrectly formatted /etc/passwd or /etc/group file.
Check for formatting issues in /etc/passwd or /etc/group files. For example, the ";" in the line below is a typo that caused the error mentioned above:
gpadmin:x:7200665:43457;:/home/gpadmin:/sbin/nologin
Correct the typo and restart Ranger through Ambari.