<?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: Oozie workflow calls sqoop import (sql-server to hive) - loads data in hdfs ok but fails at hive step. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-workflow-calls-sqoop-import-sql-server-to-hive-loads/m-p/172501#M45895</link>
    <description>&lt;P&gt;@Imtiaz Yousaf please set the properties given in &lt;A href="http://stackoverflow.com/questions/24390227/hadoop-jobs-fail-when-submitted-by-users-other-than-yarn-mrv2-or-mapred-mrv1" target="_blank"&gt;http://stackoverflow.com/questions/24390227/hadoop-jobs-fail-when-submitted-by-users-other-than-yarn-mrv2-or-mapred-mrv1&lt;/A&gt; hope this helps...  Please do let me know if you still have the issue after doing the changes.&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2016 18:12:19 GMT</pubDate>
    <dc:creator>dheer_vijji_rag</dc:creator>
    <dc:date>2016-11-11T18:12:19Z</dc:date>
    <item>
      <title>Oozie workflow calls sqoop import (sql-server to hive) - loads data in hdfs ok but fails at hive step.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-workflow-calls-sqoop-import-sql-server-to-hive-loads/m-p/172498#M45892</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/9312-oozie-error.txt"&gt;oozie-error.txt&lt;/A&gt;hi guys,&lt;/P&gt;&lt;P&gt;I am running an oozie workflow which calls sqoop import from sql-server to hive, it works ok up to data load in hdfs but fails at hive part with error "[main] ERROR org.apache.sqoop.tool.ImportTool - Encountered IOException running import job: java.io.IOException: Hive exited with status 1". I have tried many recommendation from blog but non is working.&lt;/P&gt;&lt;P&gt;I have mentioned details in attached file.&lt;/P&gt;&lt;P&gt;Your help will be appreciated.&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 01:12:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-workflow-calls-sqoop-import-sql-server-to-hive-loads/m-p/172498#M45892</guid>
      <dc:creator>imtiaz_yousaf</dc:creator>
      <dc:date>2016-11-11T01:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie workflow calls sqoop import (sql-server to hive) - loads data in hdfs ok but fails at hive step.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-workflow-calls-sqoop-import-sql-server-to-hive-loads/m-p/172499#M45893</link>
      <description>&lt;P&gt;Your log has this error. &lt;/P&gt;&lt;P&gt;Diagnostics: File does not exist: hdfs://xxx-hdfs.abc.net:8020/user/yarn/.hiveJars/hive-exec-1.2.1.2.3.4.0-3485-bb59749376792da886f093283cc8bbdb78c69612f13abcbcedbef00717030c90.jar&lt;/P&gt;&lt;P&gt;Check if the /user/yarn directory exists and check that owner:group are yarn:hdfs&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 01:59:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-workflow-calls-sqoop-import-sql-server-to-hive-loads/m-p/172499#M45893</guid>
      <dc:creator>james_jones</dc:creator>
      <dc:date>2016-11-11T01:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie workflow calls sqoop import (sql-server to hive) - loads data in hdfs ok but fails at hive step.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-workflow-calls-sqoop-import-sql-server-to-hive-loads/m-p/172500#M45894</link>
      <description>&lt;P&gt;Thanks Jarnes.&lt;/P&gt;&lt;P&gt;yes directory /user/yarn exists, however owner:group was yarn:yarn which I have changed to yarn:hdfs. After this I verified the access from user hdfs and yarn to this folder (/user/yarn/) and jar file, both users can access the directory. I ran the job again but error is still coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FileNotFoundException: File does not exist: hdfs://xxx-hdfs.abc.net:8020/user/yarn/.hiveJars/hive-exec-1.2.1.2.3.4.0-3485-bb59749376792da886f093283cc8bbdb78c69612f13abcbcedbef00717030c90.jar&lt;/P&gt;&lt;P&gt;--------------&lt;/P&gt;&lt;P&gt;Here is the state of folder:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[hdfs@xxx]$ hadoop fs -ls /user/yarn/.hiveJars
Found 1 items
-rw-r--r--  1 yarn hdfs  20709454 2016-11-07 16:49 /user/yarn/.hiveJars/hive-exec-1.2.1.2.3.4.0-3485-bb59749376792da886f093283cc8bbdb78c69612f13abcbcedbef00717030c90.jar&lt;/P&gt;&lt;P&gt;--- Here I pasted the jar file from log just to make sure it exists.&lt;/P&gt;&lt;P&gt;[hdfs@xxx]$ hadoop fs -ls /user/yarn/.hiveJars/hive-exec-1.2.1.2.3.4.0-3485-bb59749376792da886f093283cc8bbdb78c69612f13abcbcedbef00717030c90.jar&lt;/P&gt;&lt;P&gt;-rw-r--r--  1 yarn hdfs  20709454 2016-11-07 16:49 /user/yarn/.hiveJars/hive-exec-1.2.1.2.3.4.0-3485-bb59749376792da886f093283cc8bbdb78c69612f13abcbcedbef00717030c90.jar&lt;/P&gt;&lt;P&gt;Look like oozie is trying to access this folder other than yarn and hdfs?  is this possible.  &lt;/P&gt;&lt;P&gt;Or should I set read+write+execute for user+group for this folder.&lt;/P&gt;&lt;P&gt;Thx &lt;/P&gt;&lt;P&gt;      &lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 03:55:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-workflow-calls-sqoop-import-sql-server-to-hive-loads/m-p/172500#M45894</guid>
      <dc:creator>imtiaz_yousaf</dc:creator>
      <dc:date>2016-11-11T03:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie workflow calls sqoop import (sql-server to hive) - loads data in hdfs ok but fails at hive step.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-workflow-calls-sqoop-import-sql-server-to-hive-loads/m-p/172501#M45895</link>
      <description>&lt;P&gt;@Imtiaz Yousaf please set the properties given in &lt;A href="http://stackoverflow.com/questions/24390227/hadoop-jobs-fail-when-submitted-by-users-other-than-yarn-mrv2-or-mapred-mrv1" target="_blank"&gt;http://stackoverflow.com/questions/24390227/hadoop-jobs-fail-when-submitted-by-users-other-than-yarn-mrv2-or-mapred-mrv1&lt;/A&gt; hope this helps...  Please do let me know if you still have the issue after doing the changes.&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 18:12:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-workflow-calls-sqoop-import-sql-server-to-hive-loads/m-p/172501#M45895</guid>
      <dc:creator>dheer_vijji_rag</dc:creator>
      <dc:date>2016-11-11T18:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie workflow calls sqoop import (sql-server to hive) - loads data in hdfs ok but fails at hive step.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-workflow-calls-sqoop-import-sql-server-to-hive-loads/m-p/172502#M45896</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14277/imtiazyousaf.html" nodeid="14277"&gt;@Imtiaz Yousaf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you please check if hive-exec-&amp;lt;version&amp;gt;.jar file is exists in your Oozie sharelib?&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;PRE&gt;[root@prodnode3 ~]# hadoop fs -ls /user/oozie/share/lib/lib_20160926083442/hive/|grep exec
-rw-r--r--   3 oozie hdfs   20755003 2016-09-26 08:34 /user/oozie/share/lib/lib_20160926083442/hive/hive-exec-1.2.1000.2.4.2.0-258.jar
[root@prodnode3 ~]#&lt;/PRE&gt;&lt;P&gt;If not the please try to re-generate oozie sharelib using below command.&lt;/P&gt;&lt;P&gt;#Command 1&lt;/P&gt;&lt;PRE&gt;/usr/hdp/&amp;lt;version&amp;gt;/oozie/bin/oozie-setup.sh
sharelib create -locallib /usr/hdp/&amp;lt;version&amp;gt;/oozie/oozie-sharelib.tar.gz -fs
hdfs://&amp;lt;active-nn&amp;gt;:8020&lt;/PRE&gt;&lt;P&gt;#Command 2&lt;/P&gt;&lt;PRE&gt;oozie admin -oozie &lt;A href="http://localhost:11000/oozie" target="_blank"&gt;http://localhost:11000/oozie&lt;/A&gt;
-sharelibupdate&lt;/PRE&gt;&lt;P&gt;Please run above command on oozie server as 'oozie' user.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 20:19:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-workflow-calls-sqoop-import-sql-server-to-hive-loads/m-p/172502#M45896</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-11-11T20:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie workflow calls sqoop import (sql-server to hive) - loads data in hdfs ok but fails at hive step.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-workflow-calls-sqoop-import-sql-server-to-hive-loads/m-p/172503#M45897</link>
      <description>&lt;P&gt;Thanks Venkat and Kuldeep. I gave a try to job using user "root" and it worked all well. So look like its an access related issue for other users. I will follow the steps that Venkat sent in a link those should resolve the issue. I will update the post with next finding. Thx again.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 03:28:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-workflow-calls-sqoop-import-sql-server-to-hive-loads/m-p/172503#M45897</guid>
      <dc:creator>imtiaz_yousaf</dc:creator>
      <dc:date>2016-11-12T03:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie workflow calls sqoop import (sql-server to hive) - loads data in hdfs ok but fails at hive step.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-workflow-calls-sqoop-import-sql-server-to-hive-loads/m-p/172504#M45898</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14277/imtiazyousaf.html" nodeid="14277"&gt;@Imtiaz Yousaf&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;/Other people who are reading this.&lt;/P&gt;&lt;P&gt;This issue was resolved by removing hive-site.xml from below locations:&lt;/P&gt;&lt;P&gt;1. oozie sharelib (it was present at multiple locations in oozie sharelib)&lt;/P&gt;&lt;P&gt;2. from ${wf.application.path}/lib/ directory.&lt;/P&gt;&lt;P&gt;3. From workflow.xml (removed &amp;lt;job-xml&amp;gt; part)&lt;/P&gt;&lt;P&gt;By default Oozie takes this file from /etc/oozie/conf/action-conf/hive/hive-site.xml&lt;/P&gt;&lt;P&gt;Issue has been resolved! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 01:00:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-workflow-calls-sqoop-import-sql-server-to-hive-loads/m-p/172504#M45898</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-11-29T01:00:07Z</dc:date>
    </item>
  </channel>
</rss>

