<?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/292349#M216041</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;This is a permission issue in hdfs, so what you should do is as follow to resolve the issue&lt;/P&gt;&lt;P&gt;Assuming you are logged in as root&amp;nbsp; change recursively the directory owner to [&lt;STRONG&gt;user:group&lt;/STRONG&gt; ] &lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;hive:hdfs&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# su - hdfs

$ hdfs dfs -chown -R hive:hdfs /tmp/hive&lt;/LI-CODE&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Check the ownership now&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ hdfs dfs -ls /tmp&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Desired output&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The output should match the&amp;nbsp; below snippet&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;drwxrwxrwx - hive hdfs 0 2018-12-12 23:43 /tmp/hive&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Now if you re-run HQL it should succeed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please let me know&lt;/P&gt;</description>
    <pubDate>Mon, 23 Mar 2020 21:38:03 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2020-03-23T21:38:03Z</dc:date>
  </channel>
</rss>

