Created 12-17-2015 08:07 PM
Hi, I am running Ranger 0.4 with local linux usersync.
On the linux boxes I have defined two additional groups called "hadoop-users" and "hadoop-admins".
After restarting ranger-usersync, there is just the group "hadoop-users" visible in Ranger-Admin-Webui, but "hadoop-admins" is missing?!?!
What is going on there ?!?!
Thanks and regards, Gerd
Created 02-11-2016 12:42 PM
Hello,
just to update you on the real solution of the problem:
it was causes by an underlying SSL cert. issue after enabling Ranger-HTTPS. The issue got solved by importing the ranger-admin trust into the java keystore "/usr/java/jdk1.7.0_79/jre/lib/security/cacerts"
Assuming you have a Ranger cert in /etc/ranger/admin/conf/ranger-admin-keystore.jks, then:
sudo /usr/java/jdk1.7.0_79/bin/keytool -export -keystore /etc/ranger/admin/conf/ranger-admin-keystore.jks -alias ranger-admin -file ranger-admin-trust.cer sudo /usr/java/jdk1.7.0_79/bin/keytool -import -file /etc/hadoop/conf/ranger-admin-trust.cer -alias ranger-admin -keystore /usr/java/jdk1.7.0_79/jre/lib/security/cacerts #followed by a Ranger- and usersync-restart
Created on 12-18-2015 07:52 AM - edited 08-19-2019 05:31 AM
Hello @sneethiraj ,
thanks for your answer.
On all nodes the group hadoop-admins contains:
hadoop-admins:x:23231:w999711,w1004360,hdfs
and at least the user 'hdfs' is a local user and already sync'ed into Ranger, and I also restarted the ranger-usersync service with the following log entries:
18 Dec 2015 08:42:00 INFO UnixAuthenticationService [main] - Starting User Sync Service!
18 Dec 2015 08:42:00 INFO UnixAuthenticationService [main] - Enabling Unix Auth Service!
18 Dec 2015 08:42:00 INFO UserGroupSync [UnixUserSyncThread] - initializing sink: com.xasecure.unixusersync.process.PolicyMgrUserGroupBuilder 18 Dec 2015 08:42:00 INFO UnixAuthenticationService [main] - Enabling Protocol: [SSLv2Hello] 18 Dec 2015 08:42:00 INFO UnixAuthenticationService [main] - Enabling Protocol: [TLSv1] 18 Dec 2015 08:42:00 INFO UnixAuthenticationService [main] - Enabling Protocol: [TLSv1.1] 18 Dec 2015 08:42:00 INFO UnixAuthenticationService [main] - Enabling Protocol: [TLSv1.2] 18 Dec 2015 08:42:01 INFO UserGroupSync [UnixUserSyncThread] - initializing source: com.xasecure.unixusersync.process.UnixUserGroupBuilder 18 Dec 2015 08:42:01 INFO UserGroupSync [UnixUserSyncThread] - Begin: initial load of user/group from source==>sink 18 Dec 2015 08:42:01 INFO UserGroupSync [UnixUserSyncThread] - End: initial load of user/group from source==>sink 18 Dec 2015 08:42:01 INFO UserGroupSync [UnixUserSyncThread] - Done initializing user/group source and sink
But I still cannot see the group hadoop-admins in Ranger:
What else to check ? Is there some Debug output possible for usersync process ?!?
Created 12-21-2015 05:35 PM
Created on 12-22-2015 07:56 AM - edited 08-19-2019 05:30 AM
Hi @vperiasamy ,
yes, the user 'hdfs' has been sync'ed to Ranger and he is part of that group on OS level (the hadoop-admins group exists on all nodes in the cluster and 'hdfs' is member on all nodes as well).
=> user is there, but the group not....
Any hint highly appreciated 😉
Created 02-11-2016 12:42 PM
Hello,
just to update you on the real solution of the problem:
it was causes by an underlying SSL cert. issue after enabling Ranger-HTTPS. The issue got solved by importing the ranger-admin trust into the java keystore "/usr/java/jdk1.7.0_79/jre/lib/security/cacerts"
Assuming you have a Ranger cert in /etc/ranger/admin/conf/ranger-admin-keystore.jks, then:
sudo /usr/java/jdk1.7.0_79/bin/keytool -export -keystore /etc/ranger/admin/conf/ranger-admin-keystore.jks -alias ranger-admin -file ranger-admin-trust.cer sudo /usr/java/jdk1.7.0_79/bin/keytool -import -file /etc/hadoop/conf/ranger-admin-trust.cer -alias ranger-admin -keystore /usr/java/jdk1.7.0_79/jre/lib/security/cacerts #followed by a Ranger- and usersync-restart
Created 02-13-2016 06:12 AM
You should be able to accept your own answer now