<?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 query HIVE database in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-query-HIVE-database/m-p/141874#M35556</link>
    <description>&lt;P&gt;This worked ..thanks Constantin&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2016 03:53:21 GMT</pubDate>
    <dc:creator>kums</dc:creator>
    <dc:date>2016-07-22T03:53:21Z</dc:date>
    <item>
      <title>Unable to query HIVE database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-query-HIVE-database/m-p/141871#M35553</link>
      <description>&lt;P&gt;I have got a local user on one of the Gateway Node and I am trying to query one of the HIVE table using the local user account. Looks like I need do not have enough permissions and following is the error message :&lt;/P&gt;&lt;P&gt;Job Submission failed with exception
'org.apache.hadoop.security.AccessControlException(org.apache.hadoop.security.AccessControlException:
Permission denied: user=XXXXXX, access=WRITE,
inode="/user":hdfs:hdfs:Drwxr-xr-x)' FAILED: Execution Error, return
code 1 from org.apache.hadoop.hive.ql.exec.MapRedTask&lt;/P&gt;&lt;P&gt;Please advise what should be my next step to get access&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 03:29:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-query-HIVE-database/m-p/141871#M35553</guid>
      <dc:creator>kums</dc:creator>
      <dc:date>2016-07-22T03:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to query HIVE database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-query-HIVE-database/m-p/141872#M35554</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/11304/kumarveerappan.html"&gt;@Kumar Veerappan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your user needs an hdfs user directory. &lt;/P&gt;&lt;P&gt;As hdfs create a directory for your OS user in /user (under hdfs) and grant ownership to your user on that /user/youruser folder.&lt;/P&gt;&lt;P&gt;As root do:&lt;/P&gt;&lt;P&gt;sudo su hdfs&lt;/P&gt;&lt;P&gt;hadoop fs -mkdir /user/youruser&lt;/P&gt;&lt;P&gt;hadoop fs -chown youruser /user/youruser&lt;/P&gt;&lt;P&gt;Try again with your OS user and if this response addressed your problem, please vote and accept it the best response.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 03:30:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-query-HIVE-database/m-p/141872#M35554</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-07-22T03:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to query HIVE database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-query-HIVE-database/m-p/141873#M35555</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/11304/kumarveerappan.html" nodeid="11304"&gt;@Kumar Veerappan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Similar to this &lt;A href="https://community.hortonworks.com/questions/10508/mkdir-permission-denied-userroot-accesswrite-inode.html"&gt;issue&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;You are getting a "permission denied"-error because you are trying to access a folder that is owned by the &lt;EM&gt;hdfs-user &lt;/EM&gt;and the permissions do not allow write access from others.&lt;/P&gt;&lt;P&gt;A) You could use the HDFS-user to run your application/script&lt;/P&gt;&lt;PRE&gt;su hdfs&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;export HADOOP_USER_NAME=hdfs&lt;/PRE&gt;&lt;P&gt;B) Change the owner of the your user (note: to change the owner you have to be a superuser or the owner =&amp;gt; hdfs)&lt;/P&gt;&lt;PRE&gt;hdfs dfs -chown -R &amp;lt;username_of_new_owner&amp;gt; /user&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Jul 2016 03:32:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-query-HIVE-database/m-p/141873#M35555</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-07-22T03:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to query HIVE database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-query-HIVE-database/m-p/141874#M35556</link>
      <description>&lt;P&gt;This worked ..thanks Constantin&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 03:53:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-query-HIVE-database/m-p/141874#M35556</guid>
      <dc:creator>kums</dc:creator>
      <dc:date>2016-07-22T03:53:21Z</dc:date>
    </item>
  </channel>
</rss>

