<?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: Hive not applying auth_to_local rules with Kerberos (HDFS commands working) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-not-applying-auth-to-local-rules-with-Kerberos-HDFS/m-p/218514#M60375</link>
    <description>&lt;P&gt;Glad you were able to figure it out &lt;A rel="user" href="https://community.cloudera.com/users/11088/mliem.html" nodeid="11088"&gt;@mliem&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2017 02:28:50 GMT</pubDate>
    <dc:creator>srai1</dc:creator>
    <dc:date>2017-05-05T02:28:50Z</dc:date>
    <item>
      <title>Hive not applying auth_to_local rules with Kerberos (HDFS commands working)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-not-applying-auth-to-local-rules-with-Kerberos-HDFS/m-p/218509#M60370</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When i run hive commands, ranger audit is picking up my user name with Capitals e.g "John.Doe". &lt;/P&gt;&lt;P&gt;When I do HDFS Commands, its lower case "john.doe"&lt;/P&gt;&lt;P&gt;My Principal is: John.Doe&lt;A href="mailto:Matt.Liem@CORP.AD.CTC"&gt;@CORP.AD&lt;/A&gt; and we have auth-to-local rules to convert this to all lower case. (john.doe)
In ranger we are also doing &lt;A href="http://ranger.user.sync/"&gt;ranger.user.sync&lt;/A&gt; case conversion to lower so if we use user policies, only hdfs will work (e.g. i appear as john.doe in users and since Hive comes in as "John.Doe" user policies dont get applied). &lt;/P&gt;&lt;P&gt;Example: CREATE TABLE test.permtest (field1 int); - the location of this folder is /data/2017&lt;/P&gt;&lt;P&gt;[john.doe@edge1 ~]$ hdfs dfs -ls /data/2017/&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - John.Doe hdfs          0 2017-05-02 20:43 /data/2017/permtest&lt;/P&gt;&lt;P&gt;As you can see from the above, the table gets created with the ACL permissions as John.Doe. &lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;Now when I do HDFS commands, e.g. it comes up as expected (john.doe - lower case) &lt;/P&gt;&lt;P&gt;[john.doe@edge1 ~]$ hdfs dfs -mkdir /data/2017/permtest1&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - John.Doe hdfs          0 2017-05-02 20:43 /data/2017/permtest&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - john.doe hdfs          0 2017-05-02 20:44 /data/2017/permtest1&lt;/P&gt;&lt;P&gt;The John.Doe and john.doe is what gets passed to ranger for authorization and this is a problem since user ranger sync brings over "john.doe" and so any Hive policies wont work.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 10:46:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-not-applying-auth-to-local-rules-with-Kerberos-HDFS/m-p/218509#M60370</guid>
      <dc:creator>mliem</dc:creator>
      <dc:date>2017-05-03T10:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hive not applying auth_to_local rules with Kerberos (HDFS commands working)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-not-applying-auth-to-local-rules-with-Kerberos-HDFS/m-p/218510#M60371</link>
      <description>&lt;P&gt;Can you try adding the property hadoop.security.auth_to_local to hive-site.xml as well, bounce the hive services and then try?&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 11:06:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-not-applying-auth-to-local-rules-with-Kerberos-HDFS/m-p/218510#M60371</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2017-05-03T11:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hive not applying auth_to_local rules with Kerberos (HDFS commands working)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-not-applying-auth-to-local-rules-with-Kerberos-HDFS/m-p/218511#M60372</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/11088/mliem.html" nodeid="11088"&gt;@mliem&lt;/A&gt;&lt;P&gt;Have you tried this ?&lt;/P&gt;&lt;PRE&gt;ranger.usersync.ldap.username.caseconversion=lower
ranger.usersync.ldap.groupname.caseconversion=lower
&lt;/PRE&gt;&lt;P&gt;then restart ranger. &lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 11:30:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-not-applying-auth-to-local-rules-with-Kerberos-HDFS/m-p/218511#M60372</guid>
      <dc:creator>srai1</dc:creator>
      <dc:date>2017-05-03T11:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hive not applying auth_to_local rules with Kerberos (HDFS commands working)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-not-applying-auth-to-local-rules-with-Kerberos-HDFS/m-p/218512#M60373</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/11088/mliem.html" nodeid="11088"&gt;@mliem&lt;/A&gt;&lt;P&gt;Please verify the auth_to_local rules in the host where hive is running, usually in /usr/hdp/&amp;lt;Version&amp;gt;/hadoop/conf&lt;/P&gt;&lt;P&gt;You can also try copy/link core-site.xml to /etc/hive/conf/conf.server and /etc/hive/conf&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 11:41:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-not-applying-auth-to-local-rules-with-Kerberos-HDFS/m-p/218512#M60373</guid>
      <dc:creator>rguruvannagari</dc:creator>
      <dc:date>2017-05-03T11:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Hive not applying auth_to_local rules with Kerberos (HDFS commands working)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-not-applying-auth-to-local-rules-with-Kerberos-HDFS/m-p/218513#M60374</link>
      <description>&lt;P&gt;Look like it was just hive needed to be restarted (no restart prompt was there)...none of the above made any difference. &lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;ranger.usersync.ldap.username.caseconversion=lower&lt;/LI&gt;&lt;LI&gt;ranger.usersync.ldap.groupname.caseconversion=lower&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This is only used for usersync - how ranger imports your users in groups. It doesnt affect how your username or group will appear in audit&lt;/P&gt;&lt;P&gt;Please verify the auth_to_local rules in the host where hive is running, usually in /usr/hdp/&amp;lt;Version&amp;gt;/hadoop/conf&lt;/P&gt;&lt;P&gt;You can also try copy/link core-site.xml to /etc/hive/conf/conf.server and /etc/hive/conf&lt;/P&gt;&lt;P&gt;This didnt make any difference either, i believe its because it hive uses:&lt;/P&gt;&lt;P&gt;usr/hdp/current/hadoop-client/conf/:&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 21:25:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-not-applying-auth-to-local-rules-with-Kerberos-HDFS/m-p/218513#M60374</guid>
      <dc:creator>mliem</dc:creator>
      <dc:date>2017-05-03T21:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hive not applying auth_to_local rules with Kerberos (HDFS commands working)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-not-applying-auth-to-local-rules-with-Kerberos-HDFS/m-p/218514#M60375</link>
      <description>&lt;P&gt;Glad you were able to figure it out &lt;A rel="user" href="https://community.cloudera.com/users/11088/mliem.html" nodeid="11088"&gt;@mliem&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 02:28:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-not-applying-auth-to-local-rules-with-Kerberos-HDFS/m-p/218514#M60375</guid>
      <dc:creator>srai1</dc:creator>
      <dc:date>2017-05-05T02:28:50Z</dc:date>
    </item>
  </channel>
</rss>

