<?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 Launcher ERROR, reason: Main class [org.apache.oozie.action.hadoop.SqoopMain], exit code [1] in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-reason-Main-class-org-apache-oozie-action/m-p/229923#M191776</link>
    <description>&lt;P&gt;I've create an Oozie Job that uses Sqoop import get data from mysql database to hive.&lt;/P&gt;&lt;P&gt;
 the strange thing is that on Hadoop job list all my job status are SUCCEEDED instead on Oozie that job is FAIL.&lt;/P&gt;&lt;P&gt;
 &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="63423-1.jpg" style="width: 1366px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15061iFCA8EA3D3DCC3DB7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="63423-1.jpg" alt="63423-1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;
 &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="63424-2.jpg" style="width: 1366px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15062i52D3AB27CECFD576/image-size/medium?v=v2&amp;amp;px=400" role="button" title="63424-2.jpg" alt="63424-2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;
 This is my workflow.xml configuration &lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;workflow-app xmlns="uri:oozie:workflow:0.2" name="sqoop-importAssurance"&amp;gt;
    &amp;lt;start to="sqoop-node"/&amp;gt;
    &amp;lt;action name="sqoop-node"&amp;gt;
        &amp;lt;sqoop xmlns="uri:oozie:sqoop-action:0.2"&amp;gt;
            &amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt;
            &amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;
            &amp;lt;configuration&amp;gt;
                &amp;lt;property&amp;gt;
                    &amp;lt;name&amp;gt;mapred.job.queue.name&amp;lt;/name&amp;gt;
                    &amp;lt;value&amp;gt;${queueName}&amp;lt;/value&amp;gt;     
                &amp;lt;/property&amp;gt;
    &amp;lt;property&amp;gt;
                    &amp;lt;name&amp;gt;oozie.hive.defaults&amp;lt;/name&amp;gt;
                    &amp;lt;value&amp;gt;/tmp/hive-site.xml&amp;lt;/value&amp;gt;
                &amp;lt;/property&amp;gt;
    &amp;lt;property&amp;gt;
     &amp;lt;name&amp;gt;yarn.nodemanager.vmem-check-enabled&amp;lt;/name&amp;gt;
       &amp;lt;value&amp;gt;false&amp;lt;/value&amp;gt;
       &amp;lt;description&amp;gt;Whether virtual memory limits will be enforced for containers&amp;lt;/description&amp;gt;
    &amp;lt;/property&amp;gt;
    &amp;lt;property&amp;gt;
       &amp;lt;name&amp;gt;yarn.nodemanager.vmem-pmem-ratio&amp;lt;/name&amp;gt;
       &amp;lt;value&amp;gt;4&amp;lt;/value&amp;gt;
       &amp;lt;description&amp;gt;Ratio between virtual memory to physical memory when setting memory limits for containers&amp;lt;/description&amp;gt;
    &amp;lt;/property&amp;gt;
            &amp;lt;/configuration&amp;gt; 
            &amp;lt;command&amp;gt;import -Dorg.apache.sqoop.splitter.allow_text_splitter=true --connect jdbc:mysql://xxxxxx --table assurance --username xxxxx --password xxxxxx --driver com.mysql.jdbc.Driver  --hive-import --hive-table assurance --check-column lastaccess --incremental lastmodified --map-column-hive firstaccess=TIMESTAMP,lastaccess=TIMESTAMP  -m 1 --merge-key macaddr&amp;lt;/command&amp;gt;   
   &amp;lt;file&amp;gt;/tmp/hive-site.xml#hive-site.xml&amp;lt;/file&amp;gt;
        &amp;lt;/sqoop&amp;gt;
        &amp;lt;ok to="end"/&amp;gt;
        &amp;lt;error to="fail"/&amp;gt;
    &amp;lt;/action&amp;gt;
    &amp;lt;kill name="fail"&amp;gt;
        &amp;lt;message&amp;gt;Sqoop failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&amp;lt;/message&amp;gt;
    &amp;lt;/kill&amp;gt;
    &amp;lt;end name="end"/&amp;gt;
&amp;lt;/workflow-app&amp;gt;
&lt;/PRE&gt;&lt;P&gt;and this is myproperties &lt;/P&gt;&lt;PRE&gt;nameNode=hdfs://172.17.0.2:8020
jobTracker=sandbox-hdp.hortonworks.com:8032
queueName=default
examplesRoot=examples
oozie.use.system.libpath=true
oozie.action.sharelib.for.sqoop=hive,hcatalog,sqoop
oozie.action.sharelib.for.hive=hive,hcatalog,sqoop
oozie.wf.application.path=${nameNode}/user/test/
workflowAppUri=${nameNode}/user/test/
oozie.libpat=/user/oozie/share/lib/
user.name=root
start=2018-02-14T17:30Z
end=2018-02-14T19:30Z
&lt;/PRE&gt;&lt;P&gt;I've insert mysql-connector-java-5.1.45 into  oozie.libpath folder and uplod hive-conf.xml into /etc/hive/conf/,&lt;/P&gt;&lt;P&gt;but nothing.&lt;/P&gt;&lt;P&gt;below there are my full log, i've set oozie log level to DEBUG&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/63426-logs.txt" target="_blank"&gt;logs.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 00:52:12 GMT</pubDate>
    <dc:creator>smatino</dc:creator>
    <dc:date>2019-08-18T00:52:12Z</dc:date>
  </channel>
</rss>

