<?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 [Solved] : Problem while submitting Oozie workflow for SqoopAction in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solved-Problem-while-submitting-Oozie-workflow-for/m-p/200012#M78528</link>
    <description>&lt;P&gt;I am getting error while execution of Oozie workflow for Sqoop. I can execute list-database for list all database in MsSQL and also Sqoop command working well when I am executing without Workflow. Now I am trying to import table from MsSQL database into Hive using Sqoop, but while trying to import tables getting below error. Please help to resolve this.&lt;/P&gt;&lt;PRE&gt;Main class [org.apache.oozie.action.hadoop.SqoopMain], exit code [1]&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Sqoop Command:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;sqoop import --connect jdbc:sqlserver://&amp;lt;IP:PORT&amp;gt; --username &amp;lt;username&amp;gt; --password &amp;lt;password&amp;gt; --table &amp;lt;SQL_Tbale&amp;gt; --hive-import --hive-table &amp;lt;hivedb.hivetbl&amp;gt; -m 1&lt;/PRE&gt;&lt;P&gt;Following files are being used for workflow. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;job.properties&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;nameNode=hdfs://sandbox.hortonworks.com:8020
jobTracker=sandbox.hortonworks.com:8050
queueName=default
appPath=${nameNode}/&amp;lt;HDFS_path_where_workflow.xml_file&amp;gt;
oozie.use.system.libpath=true
oozie.libpath=${nameNode}/user/oozie/share/lib/lib_20161025075203/
oozie.wf.application.path=${appPath}&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;workflow.xml&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;workflow-app name="SqoopImportAction" xmlns="uri:oozie:workflow:0.4"&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;job-xml&amp;gt;${appPath}/hive-site.xml&amp;lt;/job-xml&amp;gt;
            &amp;lt;command&amp;gt;import --connect jdbc:sqlserver://&amp;lt;IP:PORT&amp;gt; --username &amp;lt;username&amp;gt; --password &amp;lt;password&amp;gt; --table &amp;lt;SQL_Tbale&amp;gt; --hive-import --hive-table &amp;lt;hivedb.hivetbl&amp;gt; -m 1 &amp;lt;/command&amp;gt;
                &amp;lt;archive&amp;gt;${appPath}/sqljdbc42.jar&amp;lt;/archive&amp;gt;
        &amp;lt;/sqoop&amp;gt;
        &amp;lt;ok to="end"/&amp;gt;
        &amp;lt;error to="kill"/&amp;gt;
    &amp;lt;/action&amp;gt;
    &amp;lt;kill name="kill"&amp;gt;
        &amp;lt;message&amp;gt;Action 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;P.S.: I have also tried following things; &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Copy sqljdbc42.jar into appPath.&lt;/LI&gt;&lt;LI&gt;Copy sqljdbc42.jar into oozie lib path. i.e ${nameNode}/user/oozie/share/lib/lib_20161025075203/sqoop&lt;/LI&gt;&lt;LI&gt;Copy hive-exec*.jar intp oozie lib path.&lt;/LI&gt;&lt;LI&gt;Run workflow as hdfs,oozie and root user&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Please help me to resolve this. Thanks in Advance.&lt;/P&gt;</description>
    <pubDate>Mon, 21 May 2018 15:11:59 GMT</pubDate>
    <dc:creator>pateljay</dc:creator>
    <dc:date>2018-05-21T15:11:59Z</dc:date>
    <item>
      <title>[Solved] : Problem while submitting Oozie workflow for SqoopAction</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solved-Problem-while-submitting-Oozie-workflow-for/m-p/200012#M78528</link>
      <description>&lt;P&gt;I am getting error while execution of Oozie workflow for Sqoop. I can execute list-database for list all database in MsSQL and also Sqoop command working well when I am executing without Workflow. Now I am trying to import table from MsSQL database into Hive using Sqoop, but while trying to import tables getting below error. Please help to resolve this.&lt;/P&gt;&lt;PRE&gt;Main class [org.apache.oozie.action.hadoop.SqoopMain], exit code [1]&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Sqoop Command:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;sqoop import --connect jdbc:sqlserver://&amp;lt;IP:PORT&amp;gt; --username &amp;lt;username&amp;gt; --password &amp;lt;password&amp;gt; --table &amp;lt;SQL_Tbale&amp;gt; --hive-import --hive-table &amp;lt;hivedb.hivetbl&amp;gt; -m 1&lt;/PRE&gt;&lt;P&gt;Following files are being used for workflow. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;job.properties&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;nameNode=hdfs://sandbox.hortonworks.com:8020
jobTracker=sandbox.hortonworks.com:8050
queueName=default
appPath=${nameNode}/&amp;lt;HDFS_path_where_workflow.xml_file&amp;gt;
oozie.use.system.libpath=true
oozie.libpath=${nameNode}/user/oozie/share/lib/lib_20161025075203/
oozie.wf.application.path=${appPath}&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;workflow.xml&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;workflow-app name="SqoopImportAction" xmlns="uri:oozie:workflow:0.4"&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;job-xml&amp;gt;${appPath}/hive-site.xml&amp;lt;/job-xml&amp;gt;
            &amp;lt;command&amp;gt;import --connect jdbc:sqlserver://&amp;lt;IP:PORT&amp;gt; --username &amp;lt;username&amp;gt; --password &amp;lt;password&amp;gt; --table &amp;lt;SQL_Tbale&amp;gt; --hive-import --hive-table &amp;lt;hivedb.hivetbl&amp;gt; -m 1 &amp;lt;/command&amp;gt;
                &amp;lt;archive&amp;gt;${appPath}/sqljdbc42.jar&amp;lt;/archive&amp;gt;
        &amp;lt;/sqoop&amp;gt;
        &amp;lt;ok to="end"/&amp;gt;
        &amp;lt;error to="kill"/&amp;gt;
    &amp;lt;/action&amp;gt;
    &amp;lt;kill name="kill"&amp;gt;
        &amp;lt;message&amp;gt;Action 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;P.S.: I have also tried following things; &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Copy sqljdbc42.jar into appPath.&lt;/LI&gt;&lt;LI&gt;Copy sqljdbc42.jar into oozie lib path. i.e ${nameNode}/user/oozie/share/lib/lib_20161025075203/sqoop&lt;/LI&gt;&lt;LI&gt;Copy hive-exec*.jar intp oozie lib path.&lt;/LI&gt;&lt;LI&gt;Run workflow as hdfs,oozie and root user&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Please help me to resolve this. Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 15:11:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solved-Problem-while-submitting-Oozie-workflow-for/m-p/200012#M78528</guid>
      <dc:creator>pateljay</dc:creator>
      <dc:date>2018-05-21T15:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: [Solved] : Problem while submitting Oozie workflow for SqoopAction</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solved-Problem-while-submitting-Oozie-workflow-for/m-p/200013#M78529</link>
      <description>&lt;P&gt;Can you check logs of mapper task under oozie launcher job?&lt;/P&gt;&lt;P&gt;Also if you can attach yarn logs.&lt;/P&gt;&lt;P&gt;yarn logs -applicationId &amp;lt;applicationid&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 01:46:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solved-Problem-while-submitting-Oozie-workflow-for/m-p/200013#M78529</guid>
      <dc:creator>schhabra1</dc:creator>
      <dc:date>2018-06-07T01:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: [Solved] : Problem while submitting Oozie workflow for SqoopAction</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solved-Problem-while-submitting-Oozie-workflow-for/m-p/200014#M78530</link>
      <description>&lt;P style="margin-left: 20px;"&gt;HI All,&lt;BR /&gt;I have solved the issue by following ;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Copied &lt;STRONG&gt;sqljdbc42.jar&lt;/STRONG&gt; into Hive and HCatalog lib path on HDFS&lt;/LI&gt;&lt;LI&gt;By Appending job.properties file by giving value of &lt;STRONG&gt;oozie.action.sharelib.for.sqoop&lt;/STRONG&gt; and &lt;STRONG&gt;oozie.action.sharelib.for.hive &lt;/STRONG&gt;arguments.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;EM&gt;job.properties:&lt;/EM&gt;&lt;/P&gt;&lt;OL&gt;
&lt;/OL&gt;&lt;PRE&gt;nameNode=hdfs://sandbox.hortonworks.com:8020
jobTracker=sandbox.hortonworks.com:8050
queueName=defaultappPath=${nameNode}/&amp;lt;HDFS_path_where_workflow.xml_file&amp;gt;
oozie.use.system.libpath=true
oozie.libpath=${nameNode}/user/oozie/share/lib/lib_20161025075203/
oozie.wf.application.path=${appPath}
#SHARELIB PATH FOR ACTION#
oozie.action.sharelib.for.sqoop=hive,hcatalog,sqoop 
oozie.action.sharelib.for.hive=hive,hcatalog,sqoop&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Note: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;You could exclude &lt;STRONG&gt;oozie.libpath&lt;/STRONG&gt; from job.properties.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jay.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 12:33:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solved-Problem-while-submitting-Oozie-workflow-for/m-p/200014#M78530</guid>
      <dc:creator>pateljay</dc:creator>
      <dc:date>2018-06-07T12:33:35Z</dc:date>
    </item>
  </channel>
</rss>

