<?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: Unable to run Hive query through putty in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-run-Hive-query-through-putty/m-p/292420#M216083</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/74173"&gt;@ARVINDR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to&amp;nbsp;@&lt;A href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/60150" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;stevenmatison&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;switch command which people usually ignore&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Add a Hive proxy&lt;/STRONG&gt;&lt;BR /&gt;To prevent network connection or notification problems, you must add a hive user proxy for HiveServer Interactive service to access the Hive Metastore&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In Ambari, &lt;STRONG&gt;select Services &amp;gt; HDFS &amp;gt; Configs &amp;gt; Advanced.&lt;/STRONG&gt;&lt;BR /&gt;In Custom core-site, add the FQDNs of the HiveServer Interactive host or hosts to the value of hadoop.proxyuser.hive.hosts.&lt;BR /&gt;Save the changes.&lt;/P&gt;&lt;P&gt;Can you also set the &lt;STRONG&gt;hive.server2.enable.doAs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hive.server2.enable.doAs=true&lt;/STRONG&gt; --&amp;gt; Run hive scripts as end user instead of Hive user.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hive.server2.enable.doAs=false&lt;/STRONG&gt; --&amp;gt; All the jobs will run as hive user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Mar 2020 13:51:17 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2020-03-24T13:51:17Z</dc:date>
  </channel>
</rss>

