<?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 Permission Denied for user while creating a hive table using sqoop in Oozie workflow in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105898#M15803</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Environment : HDP 2.3.4, 3 Nodes, 32GB ram, redhat &lt;/P&gt;&lt;P&gt;I am running a sqoop job via Hue-oozie. The job is to import data from Mysql into Hive. &lt;/P&gt;&lt;P&gt;As I understand it, Sqoop first imports the data from MYSQL using JDBC and writes that into HDFS. &lt;/P&gt;&lt;P&gt;Then Sqoop calls Hive to create a table and move the same data into Hive warehouse to create a hive internal table. &lt;/P&gt;&lt;P&gt;So far, the part where Sqoop imports data from MYSQL completes successfully, BUT the task to create Hive table keeps on failing. &lt;/P&gt;&lt;P&gt;Below is the snippet for the error. &lt;/P&gt;&lt;PRE&gt;26225 [Thread-28] INFO  org.apache.sqoop.hive.HiveImport  - org.apache.hadoop.security.AccessControlException: Permission denied: user=urep, access=EXECUTE, inode="/tmp/hive/yarn/_tez_session_dir/3007739a-c7fe-4730-a360-ba304646bc3b/hive-hcatalog-core.jar":yarn:hdfs:drwx------
2016-01-20 09:48:21,069 INFO  [Thread-28] hive.HiveImport (LoggingAsyncSink.java:run(85)) - org.apache.hadoop.security.AccessControlException: Permission denied: user=urep, access=EXECUTE, inode="/tmp/hive/yarn/_tez_session_dir/3007739a-c7fe-4730-a360-ba304646bc3b/hive-hcatalog-core.jar":yarn:hdfs:drwx------&lt;/PRE&gt;&lt;P&gt;What I HAVE TRIED so far: &lt;/P&gt;&lt;P&gt;1. &lt;A href="https://community.hortonworks.com/questions/8158/permission-denied-for-userhive-on-load-data-inpath.html"&gt;https://community.hortonworks.com/questions/8158/permission-denied-for-userhive-on-load-data-inpath.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have given 777 permission to /tmp/hive/yarn/_tez_session_dir but did not help. &lt;/P&gt;&lt;P&gt;2. &lt;A href="https://community.hortonworks.com/questions/7642/oozie-shell-action-permission-denied-userxyz-acces.html"&gt;https://community.hortonworks.com/questions/7642/oozie-shell-action-permission-denied-userxyz-acces.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I added the hadoop user environment variable either but that didnt work. &lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2016 04:08:58 GMT</pubDate>
    <dc:creator>vinayakagrawal8</dc:creator>
    <dc:date>2016-01-21T04:08:58Z</dc:date>
    <item>
      <title>Permission Denied for user while creating a hive table using sqoop in Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105898#M15803</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Environment : HDP 2.3.4, 3 Nodes, 32GB ram, redhat &lt;/P&gt;&lt;P&gt;I am running a sqoop job via Hue-oozie. The job is to import data from Mysql into Hive. &lt;/P&gt;&lt;P&gt;As I understand it, Sqoop first imports the data from MYSQL using JDBC and writes that into HDFS. &lt;/P&gt;&lt;P&gt;Then Sqoop calls Hive to create a table and move the same data into Hive warehouse to create a hive internal table. &lt;/P&gt;&lt;P&gt;So far, the part where Sqoop imports data from MYSQL completes successfully, BUT the task to create Hive table keeps on failing. &lt;/P&gt;&lt;P&gt;Below is the snippet for the error. &lt;/P&gt;&lt;PRE&gt;26225 [Thread-28] INFO  org.apache.sqoop.hive.HiveImport  - org.apache.hadoop.security.AccessControlException: Permission denied: user=urep, access=EXECUTE, inode="/tmp/hive/yarn/_tez_session_dir/3007739a-c7fe-4730-a360-ba304646bc3b/hive-hcatalog-core.jar":yarn:hdfs:drwx------
2016-01-20 09:48:21,069 INFO  [Thread-28] hive.HiveImport (LoggingAsyncSink.java:run(85)) - org.apache.hadoop.security.AccessControlException: Permission denied: user=urep, access=EXECUTE, inode="/tmp/hive/yarn/_tez_session_dir/3007739a-c7fe-4730-a360-ba304646bc3b/hive-hcatalog-core.jar":yarn:hdfs:drwx------&lt;/PRE&gt;&lt;P&gt;What I HAVE TRIED so far: &lt;/P&gt;&lt;P&gt;1. &lt;A href="https://community.hortonworks.com/questions/8158/permission-denied-for-userhive-on-load-data-inpath.html"&gt;https://community.hortonworks.com/questions/8158/permission-denied-for-userhive-on-load-data-inpath.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have given 777 permission to /tmp/hive/yarn/_tez_session_dir but did not help. &lt;/P&gt;&lt;P&gt;2. &lt;A href="https://community.hortonworks.com/questions/7642/oozie-shell-action-permission-denied-userxyz-acces.html"&gt;https://community.hortonworks.com/questions/7642/oozie-shell-action-permission-denied-userxyz-acces.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I added the hadoop user environment variable either but that didnt work. &lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 04:08:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105898#M15803</guid>
      <dc:creator>vinayakagrawal8</dc:creator>
      <dc:date>2016-01-21T04:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied for user while creating a hive table using sqoop in Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105899#M15804</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2288/vinayakagrawal88.html" nodeid="2288"&gt;@Vinayak Agrawal&lt;/A&gt; try sudo -u hdfs hdfs dfs -chmod -R 777 /tmp/hive/yarn&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 04:13:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105899#M15804</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-21T04:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied for user while creating a hive table using sqoop in Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105900#M15805</link>
      <description>&lt;P&gt;Artem Thanks for your reply. 
I have given 777 recursively to /tmp/hive/yarn which did not help&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1480-hivbx.png" style="width: 1820px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23542i1D6DDB9C5F61FAC1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1480-hivbx.png" alt="1480-hivbx.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:55:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105900#M15805</guid>
      <dc:creator>vinayakagrawal8</dc:creator>
      <dc:date>2019-08-19T11:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied for user while creating a hive table using sqoop in Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105901#M15806</link>
      <description>&lt;P&gt;doesn't look like write permission for other took effect if you say 777 was applied. Is user urep part of any group or part of other?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 04:26:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105901#M15806</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-21T04:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied for user while creating a hive table using sqoop in Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105902#M15807</link>
      <description>&lt;P&gt;@Vinayak : What is your /tmp dir permission and if it is not 777 then please make it to 777. &lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 02:43:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105902#M15807</guid>
      <dc:creator>SK1</dc:creator>
      <dc:date>2016-01-22T02:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied for user while creating a hive table using sqoop in Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105903#M15808</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2288/vinayakagrawal88.html" nodeid="2288"&gt;@Vinayak Agrawal&lt;/A&gt; are you still having problems with this? Can you provide your own solution or accept best answer?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 05:23:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105903#M15808</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-03T05:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied for user while creating a hive table using sqoop in Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105904#M15809</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/2288/vinayakagrawal88.html"&gt;Vinayak Agrawal&lt;/A&gt; Are you running the sqoop job as user yarn? if not the user running the sqoop job should have the appropriate permissions eg 777  /tmp/hive/yarn/_tez_session_dir/xxxxx&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 05:38:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105904#M15809</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2016-02-03T05:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied for user while creating a hive table using sqoop in Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105905#M15810</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2288/vinayakagrawal88.html" nodeid="2288"&gt;@Vinayak Agrawal&lt;/A&gt;: Mind sharing your solution? I have exactly the same problem&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 20:54:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105905#M15810</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-05-14T20:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied for user while creating a hive table using sqoop in Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105906#M15811</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2288/vinayakagrawal88.html" nodeid="2288"&gt;@Vinayak Agrawal&lt;/A&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;try modifying the workflow.xml and add&lt;/P&gt;&lt;PRE&gt;&amp;lt;exec&amp;gt;${execFile}&amp;lt;/exec&amp;gt; 
 &amp;lt;env-var&amp;gt;HADOOP_USER_NAME=${wf:user()}&amp;lt;/env-var&amp;gt; 
&amp;lt;file&amp;gt;${execPath}#${execFile}&amp;lt;/file&amp;gt; &lt;/PRE&gt;</description>
      <pubDate>Sat, 14 May 2016 21:09:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105906#M15811</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-05-14T21:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied for user while creating a hive table using sqoop in Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105907#M15812</link>
      <description>&lt;P&gt;I resolved this issue by copying the hive-hcatalog-core.jar file directly under lib
folder of the workflow&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 04:44:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105907#M15812</guid>
      <dc:creator>bigdataam09</dc:creator>
      <dc:date>2016-06-08T04:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied for user while creating a hive table using sqoop in Oozie workflow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105908#M15813</link>
      <description>&lt;P&gt;Hi Amit,

Can you please let us know the location that you have added this hive-hcatalog-core.jar file, we are facing similar issue now.&lt;/P&gt;&lt;P&gt;PS: We are trying to run hive query in Shell Script in Oozie hue. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 15:57:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-Denied-for-user-while-creating-a-hive-table-using/m-p/105908#M15813</guid>
      <dc:creator>ramcharantej</dc:creator>
      <dc:date>2017-01-06T15:57:18Z</dc:date>
    </item>
  </channel>
</rss>

