<?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 hive impersonation not working after HDP upgrade to 2.4.0.0 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-impersonation-not-working-after-HDP-upgrade-to-2-4-0-0/m-p/158681#M29033</link>
    <description>&lt;P&gt;Hive -version :  hive-1.2.1000.2.4.0.0&lt;/P&gt;&lt;P&gt;
I upgraded our test cluster with hive-1.2.1000.2.4.0.0.   After the upgrade, I am unable to impersonate any user when running hive query using HS2. &lt;/P&gt;&lt;P&gt;
Following property were set. &lt;/P&gt;&lt;P&gt;
hive.server2.enable.doAs=true.&lt;/P&gt;&lt;PRE&gt; 

[hive@usw2dydpmn01 hive]$ beeline
WARNING: Use "yarn jar" to launch YARN applications.
Beeline version 1.2.1000.2.4.0.0-169 by Apache Hive
beeline&amp;gt; !connect jdbc:hive2://usw2dydpmn01:10010
Connecting to jdbc:hive2://usw2dydpmn01:10010
Enter username for jdbc:hive2://usw2dydpmn01:10010: hive
Enter password for jdbc:hive2://usw2dydpmn01:10010:
Error: Failed to open new session: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hive is not allowed to impersonate hive (state=,code=0)
 
&lt;/PRE&gt;&lt;P&gt;Edit 1:&lt;/P&gt;&lt;P&gt;updating with more info.&lt;/P&gt;&lt;P&gt;Hive impersonation was already exists. After the HDP upgrade , it is not working.
The problem exists only in hive-server2. If I run the query using hive-cli, then it is impersonating the user and it is running as expected.&lt;/P&gt;&lt;P&gt;If I make this property to false, then all the queries are running.  &lt;/P&gt;&lt;PRE&gt;hive.server2.enable.doAs=true.&lt;/PRE&gt;</description>
    <pubDate>Fri, 20 May 2016 13:14:51 GMT</pubDate>
    <dc:creator>anand_ranganath</dc:creator>
    <dc:date>2016-05-20T13:14:51Z</dc:date>
    <item>
      <title>hive impersonation not working after HDP upgrade to 2.4.0.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-impersonation-not-working-after-HDP-upgrade-to-2-4-0-0/m-p/158681#M29033</link>
      <description>&lt;P&gt;Hive -version :  hive-1.2.1000.2.4.0.0&lt;/P&gt;&lt;P&gt;
I upgraded our test cluster with hive-1.2.1000.2.4.0.0.   After the upgrade, I am unable to impersonate any user when running hive query using HS2. &lt;/P&gt;&lt;P&gt;
Following property were set. &lt;/P&gt;&lt;P&gt;
hive.server2.enable.doAs=true.&lt;/P&gt;&lt;PRE&gt; 

[hive@usw2dydpmn01 hive]$ beeline
WARNING: Use "yarn jar" to launch YARN applications.
Beeline version 1.2.1000.2.4.0.0-169 by Apache Hive
beeline&amp;gt; !connect jdbc:hive2://usw2dydpmn01:10010
Connecting to jdbc:hive2://usw2dydpmn01:10010
Enter username for jdbc:hive2://usw2dydpmn01:10010: hive
Enter password for jdbc:hive2://usw2dydpmn01:10010:
Error: Failed to open new session: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hive is not allowed to impersonate hive (state=,code=0)
 
&lt;/PRE&gt;&lt;P&gt;Edit 1:&lt;/P&gt;&lt;P&gt;updating with more info.&lt;/P&gt;&lt;P&gt;Hive impersonation was already exists. After the HDP upgrade , it is not working.
The problem exists only in hive-server2. If I run the query using hive-cli, then it is impersonating the user and it is running as expected.&lt;/P&gt;&lt;P&gt;If I make this property to false, then all the queries are running.  &lt;/P&gt;&lt;PRE&gt;hive.server2.enable.doAs=true.&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 May 2016 13:14:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-impersonation-not-working-after-HDP-upgrade-to-2-4-0-0/m-p/158681#M29033</guid>
      <dc:creator>anand_ranganath</dc:creator>
      <dc:date>2016-05-20T13:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: hive impersonation not working after HDP upgrade to 2.4.0.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-impersonation-not-working-after-HDP-upgrade-to-2-4-0-0/m-p/158682#M29034</link>
      <description>&lt;P&gt;Have you set the following properties to *&lt;/P&gt;&lt;P&gt;hadoop.proxyuser.hive.hosts=* &lt;/P&gt;&lt;P&gt;hadoop.proxyuser.hive.groups=*&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 14:07:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-impersonation-not-working-after-HDP-upgrade-to-2-4-0-0/m-p/158682#M29034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-20T14:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: hive impersonation not working after HDP upgrade to 2.4.0.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-impersonation-not-working-after-HDP-upgrade-to-2-4-0-0/m-p/158683#M29035</link>
      <description>&lt;P&gt;Please see:  &lt;A target="_blank" href="https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions#HiveTransactions-ConfigurationValuestoSetforCompaction"&gt;https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions#HiveTransactions-ConfigurationValuestoSetforCompaction&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If the data in your system is not owned by the Hive user (i.e., the user
 that the Hive metastore runs as), then Hive will need permission to run
 as the user who owns the data in order to perform compactions.  If you 
have already set up HiveServer2 to impersonate users, then the only 
additional work to do is assure that Hive has the right to impersonate 
users from the host running the Hive metastore.  This is done by adding 
the hostname to &lt;CODE&gt;hadoop.proxyuser.hive.hosts&lt;/CODE&gt; in Hadoop's &lt;CODE&gt;core-site.xml&lt;/CODE&gt;
 file.  If you have not already done this, then you will need to 
configure Hive to act as a proxy user.  This requires you to set up 
keytabs for the user running the Hive metastore and add &lt;CODE&gt;hadoop.proxyuser.hive.hosts&lt;/CODE&gt; and &lt;CODE&gt;hadoop.proxyuser.hive.groups&lt;/CODE&gt; to Hadoop's &lt;CODE&gt;core-site.xml&lt;/CODE&gt; file.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 14:08:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-impersonation-not-working-after-HDP-upgrade-to-2-4-0-0/m-p/158683#M29035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-20T14:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: hive impersonation not working after HDP upgrade to 2.4.0.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-impersonation-not-working-after-HDP-upgrade-to-2-4-0-0/m-p/158684#M29036</link>
      <description>&lt;P&gt;Hive impersonation is already exists. After the HDP upgrade , it is not working.&lt;/P&gt;&lt;P&gt;The problem exists only in hive-server2. If I run the query using hive-cli, then it is impersonating the user and it is running as expected.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 22:10:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-impersonation-not-working-after-HDP-upgrade-to-2-4-0-0/m-p/158684#M29036</guid>
      <dc:creator>anand_ranganath</dc:creator>
      <dc:date>2016-05-20T22:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: hive impersonation not working after HDP upgrade to 2.4.0.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-impersonation-not-working-after-HDP-upgrade-to-2-4-0-0/m-p/158685#M29037</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3560/anandranganathan.html" nodeid="3560"&gt;@Anandha L Ranganathan&lt;/A&gt;&lt;P&gt;Setting hive.server2.enable.doAs=false will always work since jobs will run under the ownership of user who is owning the HS2 process. If everything is perfect from confs side regards to impersonation then if possible it worth to restart the cluster processes and see if that resolve the issue.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 04:31:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-impersonation-not-working-after-HDP-upgrade-to-2-4-0-0/m-p/158685#M29037</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-23T04:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: hive impersonation not working after HDP upgrade to 2.4.0.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-impersonation-not-working-after-HDP-upgrade-to-2-4-0-0/m-p/158686#M29038</link>
      <description>&lt;P&gt;It seems  the user info had been deleted from the proxyuser property. Not sure how it was working before upgrade. After adding the user back that list it is working fine.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 05:28:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-impersonation-not-working-after-HDP-upgrade-to-2-4-0-0/m-p/158686#M29038</guid>
      <dc:creator>anand_ranganath</dc:creator>
      <dc:date>2016-05-24T05:28:18Z</dc:date>
    </item>
  </channel>
</rss>

