<?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 with sqoop in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-with-sqoop/m-p/63257#M1704</link>
    <description>&lt;P&gt;As it works from shell directly by running sqoop command hence it should not be mysql jar issue.&lt;/P&gt;&lt;P&gt;Looks like oozie is not able to get sqoop jar as it is the sqqop class which is missing and not the mysql class.&lt;/P&gt;&lt;P&gt;I am also facing the issue.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2018 09:44:20 GMT</pubDate>
    <dc:creator>AnshulGupta</dc:creator>
    <dc:date>2018-01-03T09:44:20Z</dc:date>
    <item>
      <title>Oozie with sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-with-sqoop/m-p/12144#M1700</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to run the Sqoop command to load data form HDFS to MySQL but when I put it inside Oozie, I get an error message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. create a file&amp;nbsp;&lt;/P&gt;&lt;P&gt;[cloudera@localhost ~]$ vi bar&lt;/P&gt;&lt;P&gt;1, joe&lt;BR /&gt;2, mac&lt;BR /&gt;&lt;BR /&gt;2. Put file inside HDFS&lt;/P&gt;&lt;P&gt;hadoop fs -put bar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Created a schema in MySQL table&lt;/P&gt;&lt;P&gt;mysql&amp;gt; create table foo (id int, name varchar(30));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Below is the sqoop command that can be used to load data from HDFS to MySQL:&lt;/P&gt;&lt;P&gt;$ sqoop export --connect jdbc:mysql://localhost/test --table foo -m 1 --export-dir /user/cloudera/bar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. vi job.properties&lt;/P&gt;&lt;P&gt;host.localdomain:8020&lt;BR /&gt;jobTracker=localhost.localdomain:8021&lt;BR /&gt;queueName=default&lt;BR /&gt;examplesRoot=examples&lt;/P&gt;&lt;P&gt;oozie.use.system.libpath=true&lt;/P&gt;&lt;P&gt;oozie.wf.application.path=${nameNode}/user/${user.name}/${examplesRoot}/apps/sqoop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. vi workflow.xml&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;workflow-app xmlns="uri:oozie:workflow:0.2" name="sqoop-wf"&amp;gt;&lt;BR /&gt;&amp;lt;start to="sqoop-node"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;action name="sqoop-node"&amp;gt;&lt;BR /&gt;&amp;lt;sqoop xmlns="uri:oozie:sqoop-action:0.2"&amp;gt;&lt;BR /&gt;&amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt;&lt;BR /&gt;&amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;&lt;BR /&gt;&amp;lt;command&amp;gt;sqoop export --connect jdbc:mysql://localhost/test --table foo -m 1 --export-dir /user/cloudera/bar&amp;lt;/command&amp;gt;&lt;BR /&gt;&amp;lt;/sqoop&amp;gt;&lt;BR /&gt;&amp;lt;ok to="end"/&amp;gt;&lt;BR /&gt;&amp;lt;error to="fail"/&amp;gt;&lt;BR /&gt;&amp;lt;/action&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;kill name="fail"&amp;gt;&lt;BR /&gt;&amp;lt;message&amp;gt;Sqoop failed&amp;lt;/message&amp;gt;&lt;BR /&gt;&amp;lt;/kill&amp;gt;&lt;BR /&gt;&amp;lt;end name="end"/&amp;gt;&lt;BR /&gt;&amp;lt;/workflow-app&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;7.&lt;BR /&gt;&lt;BR /&gt;I am on below directory&lt;/P&gt;&lt;P&gt;[cloudera@localhost ~]$ pwd&lt;BR /&gt;/home/cloudera&lt;/P&gt;&lt;P&gt;[cloudera@localhost sqoop]$ hostname&lt;BR /&gt;localhost.localdomain&lt;/P&gt;&lt;P&gt;oozie job -oozie &lt;A href="http://localhost:11000/oozie" target="_blank"&gt;http://localhost:11000/oozie&lt;/A&gt; -config examples/apps/sqoop/job.properties -run&lt;/P&gt;&lt;P&gt;o/p 0000007-140424064654427-oozie-oozi-W&lt;/P&gt;&lt;P&gt;oozie job -oozie &lt;A href="http://localhost:11000/oozie" target="_blank"&gt;http://localhost:11000/oozie&lt;/A&gt; -info 0000003-140424064654427-oozie-oozi-W&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;8. error message is:&lt;/P&gt;&lt;P&gt;[cloudera@localhost ~]$ oozie job -oozie &lt;A href="http://localhost:11000/oozie" target="_blank"&gt;http://localhost:11000/oozie&lt;/A&gt; -info 0000007-140424064654427-oozie-oozi-W&lt;BR /&gt;Job ID : 0000007-140424064654427-oozie-oozi-W&lt;BR /&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Workflow Name : sqoop-wf&lt;BR /&gt;App Path : hdfs://localhost.localdomain:8020/user/cloudera/examples/apps/sqoop&lt;BR /&gt;Status : KILLED&lt;BR /&gt;Run : 0&lt;BR /&gt;User : cloudera&lt;BR /&gt;Group : -&lt;BR /&gt;Created : 2014-05-07 18:55 GMT&lt;BR /&gt;Started : 2014-05-07 18:55 GMT&lt;BR /&gt;Last Modified : 2014-05-07 18:56 GMT&lt;BR /&gt;Ended : 2014-05-07 18:56 GMT&lt;BR /&gt;CoordAction ID: -&lt;/P&gt;&lt;P&gt;Actions&lt;BR /&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;ID Status Ext ID Ext Status Err Code&lt;BR /&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;0000007-140424064654427-oozie-oozi-W@:start: OK - OK -&lt;BR /&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;0000007-140424064654427-oozie-oozi-W@sqoop-node ERROR job_201404240646_0013 FAILED/KILLED1&lt;BR /&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;0000007-140424064654427-oozie-oozi-W@fail OK - OK E0729&lt;BR /&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;9. Job Log&lt;/P&gt;&lt;P&gt;2014-05-07 11:55:47,650 INFO org.apache.oozie.command.wf.ActionStartXCommand: USER[cloudera] GROUP[-] TOKEN[] APP[sqoop-wf] JOB[0000007-140424064654427-oozie-oozi-W] ACTION[0000007-140424064654427-oozie-oozi-W@:start:] Start action [0000007-140424064654427-oozie-oozi-W@:start:] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10]&lt;BR /&gt;2014-05-07 11:55:47,651 WARN org.apache.oozie.command.wf.ActionStartXCommand: USER[cloudera] GROUP[-] TOKEN[] APP[sqoop-wf] JOB[0000007-140424064654427-oozie-oozi-W] ACTION[0000007-140424064654427-oozie-oozi-W@:start:] [***0000007-140424064654427-oozie-oozi-W@:start:***]Action status=DONE&lt;BR /&gt;2014-05-07 11:55:47,651 WARN org.apache.oozie.command.wf.ActionStartXCommand: USER[cloudera] GROUP[-] TOKEN[] APP[sqoop-wf] JOB[0000007-140424064654427-oozie-oozi-W] ACTION[0000007-140424064654427-oozie-oozi-W@:start:] [***0000007-140424064654427-oozie-oozi-W@:start:***]Action updated in DB!&lt;BR /&gt;2014-05-07 11:55:47,738 INFO org.apache.oozie.command.wf.ActionStartXCommand: USER[cloudera] GROUP[-] TOKEN[] APP[sqoop-wf] JOB[0000007-140424064654427-oozie-oozi-W] ACTION[0000007-140424064654427-oozie-oozi-W@sqoop-node] Start action [0000007-140424064654427-oozie-oozi-W@sqoop-node] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10]&lt;BR /&gt;2014-05-07 11:55:48,605 WARN org.apache.oozie.action.hadoop.SqoopActionExecutor: USER[cloudera] GROUP[-] TOKEN[] APP[sqoop-wf] JOB[0000007-140424064654427-oozie-oozi-W] ACTION[0000007-140424064654427-oozie-oozi-W@sqoop-node] credentials is null for the action&lt;BR /&gt;2014-05-07 11:55:49,820 INFO org.apache.oozie.action.hadoop.SqoopActionExecutor: USER[cloudera] GROUP[-] TOKEN[] APP[sqoop-wf] JOB[0000007-140424064654427-oozie-oozi-W] ACTION[0000007-140424064654427-oozie-oozi-W@sqoop-node] checking action, external ID [job_201404240646_0013] status [RUNNING]&lt;BR /&gt;2014-05-07 11:55:49,922 WARN org.apache.oozie.command.wf.ActionStartXCommand: USER[cloudera] GROUP[-] TOKEN[] APP[sqoop-wf] JOB[0000007-140424064654427-oozie-oozi-W] ACTION[0000007-140424064654427-oozie-oozi-W@sqoop-node] [***0000007-140424064654427-oozie-oozi-W@sqoop-node***]Action status=RUNNING&lt;BR /&gt;2014-05-07 11:55:49,922 WARN org.apache.oozie.command.wf.ActionStartXCommand: USER[cloudera] GROUP[-] TOKEN[] APP[sqoop-wf] JOB[0000007-140424064654427-oozie-oozi-W] ACTION[0000007-140424064654427-oozie-oozi-W@sqoop-node] [***0000007-140424064654427-oozie-oozi-W@sqoop-node***]Action updated in DB!&lt;BR /&gt;2014-05-07 11:56:03,426 INFO org.apache.oozie.servlet.CallbackServlet: USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000007-140424064654427-oozie-oozi-W] ACTION[0000007-140424064654427-oozie-oozi-W@sqoop-node] callback for action [0000007-140424064654427-oozie-oozi-W@sqoop-node]&lt;BR /&gt;2014-05-07 11:56:03,504 INFO org.apache.oozie.action.hadoop.SqoopActionExecutor: USER[cloudera] GROUP[-] TOKEN[] APP[sqoop-wf] JOB[0000007-140424064654427-oozie-oozi-W] ACTION[0000007-140424064654427-oozie-oozi-W@sqoop-node] action completed, external ID [job_201404240646_0013]&lt;BR /&gt;2014-05-07 11:56:03,532 WARN org.apache.oozie.action.hadoop.SqoopActionExecutor: USER[cloudera] GROUP[-] TOKEN[] APP[sqoop-wf] JOB[0000007-140424064654427-oozie-oozi-W] ACTION[0000007-140424064654427-oozie-oozi-W@sqoop-node] Launcher ERROR, reason: Main class [org.apache.oozie.action.hadoop.SqoopMain], exit code [1]&lt;BR /&gt;2014-05-07 11:56:03,685 INFO org.apache.oozie.command.wf.ActionEndXCommand: USER[cloudera] GROUP[-] TOKEN[] APP[sqoop-wf] JOB[0000007-140424064654427-oozie-oozi-W] ACTION[0000007-140424064654427-oozie-oozi-W@sqoop-node] ERROR is considered as FAILED for SLA&lt;BR /&gt;2014-05-07 11:56:03,747 INFO org.apache.oozie.command.wf.ActionStartXCommand: USER[cloudera] GROUP[-] TOKEN[] APP[sqoop-wf] JOB[0000007-140424064654427-oozie-oozi-W] ACTION[0000007-140424064654427-oozie-oozi-W@fail] Start action [0000007-140424064654427-oozie-oozi-W@fail] with user-retry state : userRetryCount [0],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:58:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-with-sqoop/m-p/12144#M1700</guid>
      <dc:creator>rio</dc:creator>
      <dc:date>2022-09-16T08:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie with sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-with-sqoop/m-p/12248#M1701</link>
      <description>&lt;P&gt;I created lib directory inside sqoop directory and added "mysql-connector-java-5.1.29-bin.jar" file and it resolved the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rio&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 17:22:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-with-sqoop/m-p/12248#M1701</guid>
      <dc:creator>rio</dc:creator>
      <dc:date>2014-05-12T17:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie with sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-with-sqoop/m-p/23955#M1702</link>
      <description>&lt;P&gt;Hi Rio,&lt;/P&gt;&lt;P&gt;I have similar issue when I try to import data from Oracle.&amp;nbsp; The command line works fine, but it always fail and same error message as yours when I run sqoop job in Oozie in CDH5.3.&lt;/P&gt;&lt;P&gt;did you add the jar in local server /var/lib/sqoop or HDFS /user/oozie/share/lib/lib_.../sqoop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2015 16:49:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-with-sqoop/m-p/23955#M1702</guid>
      <dc:creator>PlanoHue</dc:creator>
      <dc:date>2015-01-22T16:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie with sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-with-sqoop/m-p/23966#M1703</link>
      <description>put here:&lt;BR /&gt;&lt;BR /&gt;/opt/cloudera/parcels/CDH-4.3.1-1.cdh4.3.1.p0.110/lib/sqoop/lib/mysql-connector-java-5.1.29-bin.jar&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jan 2015 18:10:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-with-sqoop/m-p/23966#M1703</guid>
      <dc:creator>rio</dc:creator>
      <dc:date>2015-01-22T18:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie with sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-with-sqoop/m-p/63257#M1704</link>
      <description>&lt;P&gt;As it works from shell directly by running sqoop command hence it should not be mysql jar issue.&lt;/P&gt;&lt;P&gt;Looks like oozie is not able to get sqoop jar as it is the sqqop class which is missing and not the mysql class.&lt;/P&gt;&lt;P&gt;I am also facing the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 09:44:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-with-sqoop/m-p/63257#M1704</guid>
      <dc:creator>AnshulGupta</dc:creator>
      <dc:date>2018-01-03T09:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie with sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-with-sqoop/m-p/67527#M1705</link>
      <description>&lt;P&gt;My scenario is little bit different. I want to import one table from MsSQL to HIVE table. So i copied&amp;nbsp;&lt;STRONG&gt;sqljdbc42.jar&lt;/STRONG&gt; to sqoop lib directory in HDFS. But i m stil facing same erroes. Please help me .&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 10:35:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-with-sqoop/m-p/67527#M1705</guid>
      <dc:creator>pateljay</dc:creator>
      <dc:date>2018-05-22T10:35:57Z</dc:date>
    </item>
  </channel>
</rss>

