<?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 Oozie Workflow with Sqoop Action to Oracle Database Problem in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-Workflow-with-Sqoop-Action-to-Oracle-Database-Problem/m-p/168919#M45609</link>
    <description>&lt;P&gt;Hey guys, &lt;/P&gt;&lt;P&gt;
I am new with HDP (v2.5 as Sandbox) and I am trying to submit an Oozie job using a Sqoop action to connect to an Oracle Database.

I managed to run Oozie jobs with a simple Hive action and a simple Sqoop action (just sending 'version') - both worked. The error occurs when sending the command: &lt;/P&gt;&lt;PRE&gt;&amp;lt;command&amp;gt;sqoop-list-tables --connect jdbc:oracle:thin:@//XX.XX.XX.XXX:XXXX/NAME --username USER --password PW&amp;lt;/command&amp;gt;&lt;/PRE&gt;&lt;P&gt;The error is:&lt;/P&gt;&lt;PRE&gt;2016-11-08 15:14:46,581  WARN SqoopActionExecutor:523 - SERVER[sandbox.hortonworks.com] USER[root] GROUP[-] TOKEN[] APP[sqoopaction] JOB[0000065-161107122627815-oozie-oozi-W] ACTION[0000065-161107122627815-oozie-oozi-W@sqoopjob] Launcher ERROR, reason: Main class [org.apache.oozie.action.hadoop.SqoopMain], exit code [1]&lt;/PRE&gt;&lt;P&gt;Actually, the command is working from the command line so it has something to do with Oozie. At some point I have read that there might be an issue with the ojdbc6.jar file so I copied it to several /lib/ folders without success.
To get rid of the spaces inbetween the command I also tried &amp;lt;arg&amp;gt;&amp;lt;/arg&amp;gt; but it didn't work.&lt;/P&gt;&lt;P&gt;What am I doing wrong here? Any advice is appreciated! 
I really have no clue what to do and the error log doesn't help.&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;P&gt;(If you need further information just let me know!)&lt;/P&gt;&lt;P&gt;-------------&lt;/P&gt;&lt;P&gt;job.properties:&lt;/P&gt;&lt;PRE&gt;nameNode=hdfs://sandbox.hortonworks.com:8020
jobTracker=hdfs://sandbox.hortonworks.com:8050
queueName=default
oozie.libpath=${nameNode}/user/oozie/share/lib
oozie.wf.application.path=data/oozie/sqoopaction
oozie.use.system.libpath=true
oozie.action.sharelib.for.sqoop = hive,hcatalog,sqoop&lt;/PRE&gt;</description>
    <pubDate>Tue, 08 Nov 2016 23:25:24 GMT</pubDate>
    <dc:creator>jiiiiken88</dc:creator>
    <dc:date>2016-11-08T23:25:24Z</dc:date>
    <item>
      <title>Oozie Workflow with Sqoop Action to Oracle Database Problem</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-Workflow-with-Sqoop-Action-to-Oracle-Database-Problem/m-p/168919#M45609</link>
      <description>&lt;P&gt;Hey guys, &lt;/P&gt;&lt;P&gt;
I am new with HDP (v2.5 as Sandbox) and I am trying to submit an Oozie job using a Sqoop action to connect to an Oracle Database.

I managed to run Oozie jobs with a simple Hive action and a simple Sqoop action (just sending 'version') - both worked. The error occurs when sending the command: &lt;/P&gt;&lt;PRE&gt;&amp;lt;command&amp;gt;sqoop-list-tables --connect jdbc:oracle:thin:@//XX.XX.XX.XXX:XXXX/NAME --username USER --password PW&amp;lt;/command&amp;gt;&lt;/PRE&gt;&lt;P&gt;The error is:&lt;/P&gt;&lt;PRE&gt;2016-11-08 15:14:46,581  WARN SqoopActionExecutor:523 - SERVER[sandbox.hortonworks.com] USER[root] GROUP[-] TOKEN[] APP[sqoopaction] JOB[0000065-161107122627815-oozie-oozi-W] ACTION[0000065-161107122627815-oozie-oozi-W@sqoopjob] Launcher ERROR, reason: Main class [org.apache.oozie.action.hadoop.SqoopMain], exit code [1]&lt;/PRE&gt;&lt;P&gt;Actually, the command is working from the command line so it has something to do with Oozie. At some point I have read that there might be an issue with the ojdbc6.jar file so I copied it to several /lib/ folders without success.
To get rid of the spaces inbetween the command I also tried &amp;lt;arg&amp;gt;&amp;lt;/arg&amp;gt; but it didn't work.&lt;/P&gt;&lt;P&gt;What am I doing wrong here? Any advice is appreciated! 
I really have no clue what to do and the error log doesn't help.&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;P&gt;(If you need further information just let me know!)&lt;/P&gt;&lt;P&gt;-------------&lt;/P&gt;&lt;P&gt;job.properties:&lt;/P&gt;&lt;PRE&gt;nameNode=hdfs://sandbox.hortonworks.com:8020
jobTracker=hdfs://sandbox.hortonworks.com:8050
queueName=default
oozie.libpath=${nameNode}/user/oozie/share/lib
oozie.wf.application.path=data/oozie/sqoopaction
oozie.use.system.libpath=true
oozie.action.sharelib.for.sqoop = hive,hcatalog,sqoop&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Nov 2016 23:25:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-Workflow-with-Sqoop-Action-to-Oracle-Database-Problem/m-p/168919#M45609</guid>
      <dc:creator>jiiiiken88</dc:creator>
      <dc:date>2016-11-08T23:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Workflow with Sqoop Action to Oracle Database Problem</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-Workflow-with-Sqoop-Action-to-Oracle-Database-Problem/m-p/168920#M45610</link>
      <description>&lt;P&gt;It seems that I managed to solve the problem.&lt;/P&gt;&lt;P&gt;What was missing:&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;One can check the share lib by&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; -shareliblist sqoop&lt;/PRE&gt;&lt;P&gt;I hope this helps also others and this should be the same for different database systems.
&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 16:58:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-Workflow-with-Sqoop-Action-to-Oracle-Database-Problem/m-p/168920#M45610</guid>
      <dc:creator>jiiiiken88</dc:creator>
      <dc:date>2016-11-09T16:58:34Z</dc:date>
    </item>
  </channel>
</rss>

