<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Ranger Group Permissions issue - AD and SSSD in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120124#M43004</link>
    <description>&lt;P&gt;When SSSD is configured, the request that comes to ranger will have the same case as the hdfs groups and this should match the one that is stored in ranger DB. But looks like ranger DB has upper case as that is sync'd from AD with case conversion as none. In this case the behavior seen above is expected behavior. Can you please set case conversion to "lower" and try?&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2016 23:03:23 GMT</pubDate>
    <dc:creator>spolavarapu</dc:creator>
    <dc:date>2016-10-07T23:03:23Z</dc:date>
    <item>
      <title>Ranger Group Permissions issue - AD and SSSD</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120117#M42997</link>
      <description>&lt;P&gt;Having an issue with applying Ranger policy permissions through groups. I see that there are several questions on this. I am having the same basic issue--Policies get applied when user is specified, but not using a group. I have gone through all of the debugging steps suggested in the questions, but still having issues.&lt;/P&gt;&lt;P&gt;SSSD - We do have this running and are able to see the groups (note: NN, HS2, and Ranger are all on this same host)&lt;/P&gt;&lt;PRE&gt;$ hdfs groups batyr_amp_admin
batyr_amp_admin : domain users batyr_amp_admins

$ id batyr_amp_admin
uid=1080619417(batyr_amp_admin) gid=1080600513(domain users) groups=1080600513(domain users),1080619409(batyr_amp_admins)
&lt;/PRE&gt;&lt;P&gt; &lt;STRONG&gt;QUESTION: If SSSD is running, do you ALSO have to setup the core-site.mapping? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;From Hiveserver2.log&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;2016-10-07 09:46:55,322 WARN  [HiveServer2-Handler-Pool: Thread-5841]: thrift.ThriftCLIService (ThriftCLIService.java:ExecuteStatement(512)) - Error executing statement: 
org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [batyr_amp_admin] does not have [USE] privilege on [amp_land]
at org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:335)
at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:148)
at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:226)
at org.apache.hive.service.cli.operation.Operation.run(Operation.java:276)
at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:468)
at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:456)
at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:298)
at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:506)
at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1317)
at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1302)
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:562)
at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAccessControlException: Permission denied: user [batyr_amp_admin] does not have [USE] privilege on [amp_land]
at org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizer.checkPrivileges(RangerHiveAuthorizer.java:412)
at org.apache.hadoop.hive.ql.Driver.doAuthorizationV2(Driver.java:855)
at org.apache.hadoop.hive.ql.Driver.doAuthorization(Driver.java:643)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:510)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:320)
at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1219)
at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1213)
at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:146)
... 15 more
&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Oct 2016 20:58:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120117#M42997</guid>
      <dc:creator>Jim_B</dc:creator>
      <dc:date>2016-10-07T20:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Group Permissions issue - AD and SSSD</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120118#M42998</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2834/jbarnett.html" nodeid="2834"&gt;@jbarnett&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To answer your question - no, if you have SSSD configured you do not need to also configure core-site mapping with LDAP.&lt;/P&gt;&lt;P&gt;Regarding your issue, it could be related to the space in your group name - could you try remove the space in the 'domain users' or test with a group that doesn't contain any spaces.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 21:22:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120118#M42998</guid>
      <dc:creator>ldaluz</dc:creator>
      <dc:date>2016-10-07T21:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Group Permissions issue - AD and SSSD</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120119#M42999</link>
      <description>&lt;P&gt;'domain users' is one of the groups that all users are associated with. However, it is NOT the one we are using for the policy. That group is 'batyr_amp_admins' (underscores and no spaces.) &lt;STRONG&gt;Would this still be an issue?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 21:28:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120119#M42999</guid>
      <dc:creator>Jim_B</dc:creator>
      <dc:date>2016-10-07T21:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Group Permissions issue - AD and SSSD</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120120#M43000</link>
      <description>&lt;P&gt;I don't think underscores will present an issue. Do you see any errors in the component logs? &lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 22:15:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120120#M43000</guid>
      <dc:creator>vperiasamy</dc:creator>
      <dc:date>2016-10-07T22:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Group Permissions issue - AD and SSSD</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120121#M43001</link>
      <description>&lt;P&gt;See snippet from HS2 log added to main question.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 22:18:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120121#M43001</guid>
      <dc:creator>Jim_B</dc:creator>
      <dc:date>2016-10-07T22:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Group Permissions issue - AD and SSSD</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120122#M43002</link>
      <description>&lt;P&gt;Is the group sync'd in ranger same case as hdfs groups? As you might already know the policy resolution in Ranger is case sensitive.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 22:25:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120122#M43002</guid>
      <dc:creator>spolavarapu</dc:creator>
      <dc:date>2016-10-07T22:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Group Permissions issue - AD and SSSD</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120123#M43003</link>
      <description>&lt;P&gt;In Ranger, group name is 'BATYR_AMP_ADMINS' (both under groups and when added to policy)&lt;/P&gt;&lt;P&gt;It is uppercase in Active Directory, and shows uppercase in the usersync.log&lt;/P&gt;&lt;P&gt;ranger.usersync.ldap.groupname.caseconversion=none&lt;/P&gt;&lt;P&gt;HOWEVER,&lt;/P&gt;&lt;P&gt;As you can see in the main question, the hdfs groups command and linux id command show lowercase.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is this expected behaviour?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 22:31:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120123#M43003</guid>
      <dc:creator>Jim_B</dc:creator>
      <dc:date>2016-10-07T22:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Group Permissions issue - AD and SSSD</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120124#M43004</link>
      <description>&lt;P&gt;When SSSD is configured, the request that comes to ranger will have the same case as the hdfs groups and this should match the one that is stored in ranger DB. But looks like ranger DB has upper case as that is sync'd from AD with case conversion as none. In this case the behavior seen above is expected behavior. Can you please set case conversion to "lower" and try?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 23:03:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120124#M43004</guid>
      <dc:creator>spolavarapu</dc:creator>
      <dc:date>2016-10-07T23:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Group Permissions issue - AD and SSSD</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120125#M43005</link>
      <description>&lt;P&gt;WINNER! That did the trick.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Changed &lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-left: 40px;"&gt;ranger.usersync.ldap.username.caseconversion=lower&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;ranger.usersync.ldap.groupname.caseconversion=lower&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Restarted Ranger (which performs usersync)&lt;/LI&gt;&lt;LI&gt;All group names are now lowercase in both Ranger and HDFS&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 08 Oct 2016 00:58:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120125#M43005</guid>
      <dc:creator>Jim_B</dc:creator>
      <dc:date>2016-10-08T00:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Group Permissions issue - AD and SSSD</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120126#M43006</link>
      <description>&lt;P&gt;I have a similar issue in our environmet: we are thinking to usersync ranger with AD. below is the issue I have:&lt;/P&gt;&lt;P&gt;AD group name: &lt;STRONG&gt;cfyG_GG-HDP_HadoopAdmins&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SSD mapped group on linux machine: hadoopadmin&lt;/P&gt;&lt;P&gt;This command yields $hdfs groups hdpadmin&lt;/P&gt;&lt;P&gt; hdpadmin : hdpadmin  &lt;STRONG&gt;hadoopadmin &lt;/STRONG&gt;hadoopdev hadoopusers&lt;/P&gt;&lt;P&gt;------------------&lt;/P&gt;&lt;P&gt;Now the problem is I can save the AD group to lower case in ranger as : &lt;STRONG&gt;cfyg_gg-hdp-hadoopadmins&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but, if I use this group to give permission it wont work, since the linux group name is &lt;STRONG&gt;hadoopadmin, &lt;/STRONG&gt;as mapped in SSSD. How can I over come this issue? &lt;/P&gt;&lt;P&gt;any help is appreciated.&lt;/P&gt;&lt;P&gt;Suri&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 03:44:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120126#M43006</guid>
      <dc:creator>SuriNuthalapati</dc:creator>
      <dc:date>2017-10-25T03:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Group Permissions issue - AD and SSSD</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120127#M43007</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have the same problem, HDP 2.5 with Ranger, policies are only working when applied to users, not to groups where users and groups are managed with AD and SSSD on the Linux side. &lt;/P&gt;&lt;P&gt;Athough all the users and groups are correctly mapped on ranger and on Linux, even the groups permissions are working fine with the Ranger encryption, but not with the policies.&lt;/P&gt;&lt;P&gt;I tried all the suggestions like the lowercase conversion but still is not working for me.&lt;/P&gt;&lt;P&gt;Any other idea?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 16:58:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120127#M43007</guid>
      <dc:creator>jmlero</dc:creator>
      <dc:date>2017-11-28T16:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Group Permissions issue - AD and SSSD</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120128#M43008</link>
      <description>&lt;P&gt;I'm having this same problem. I recently move our cluster to Ubuntu.  When using the previous Centos it was working fine.  I have tried the case conversion options with no luck.  I can however access everything if I add the user to ranger and not the group.&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 14:09:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Group-Permissions-issue-AD-and-SSSD/m-p/120128#M43008</guid>
      <dc:creator>james_bashforth</dc:creator>
      <dc:date>2018-05-01T14:09:48Z</dc:date>
    </item>
  </channel>
</rss>

