<?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 what is xmlns in oozie workflows? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-xmlns-in-oozie-workflows/m-p/130090#M27154</link>
    <description>&lt;PRE&gt;What exactly is xmls attribute in oozie workflows? &lt;/PRE&gt;&lt;P&gt;I am trying to run a sqoop command but I keep getting &lt;/P&gt;&lt;PRE&gt;ava.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.SqoopMain not found&lt;/PRE&gt;&lt;P&gt;Now, I have tried everything suggested. Set the permissions right. Have /share/lib in /user/oozie. &lt;/P&gt;&lt;P&gt;Running oozie jobs from oozie user only. &lt;/P&gt;&lt;P&gt;Just wondering if xmlns could be the problem? I am using ambari.&lt;/P&gt;&lt;P&gt;This is what I get when I check my versions:&lt;/P&gt;&lt;PRE&gt;sqoop version
Warning: /usr/hdp/2.4.0.0-169/hbase does not exist! HBase imports will fail.
Please set $HBASE_HOME to the root of your HBase installation.
Warning: /usr/hdp/2.4.0.0-169/accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
16/05/04 12:54:07 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6.2.4.0.0-169
Sqoop 1.4.6.2.4.0.0-169
git commit id c327581e17e308322d77a2ae245d0287c0e488d4
Compiled by jenkins on Wed Feb 10 08:35:28 UTC 2016
[oozie@warehouse root]$ oozie version
Oozie client build version: 4.2.0.2.4.0.0-169&lt;/PRE&gt;&lt;P&gt;My workflow has;&lt;/P&gt;&lt;PRE&gt;&amp;lt;workflow-app name="once-a-day" xmlns="uri:oozie:workflow:0.1"&amp;gt;
&amp;lt;start to="sqoopAction"/&amp;gt;
        &amp;lt;action name="sqoopAction"&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;command&amp;gt;list-tables --connect jdbc:mysql://FQDN/erp --username hive --password hive
                    &amp;lt;/command&amp;gt;
                   &amp;lt;archive&amp;gt;/lib/mysql-connector-java-5.1.38-bin.jarz#mysql-connector-java-5.1.38-bin.jar&amp;lt;/archive&amp;gt;
                &amp;lt;/sqoop&amp;gt;
                &amp;lt;ok to="end"/&amp;gt;
                &amp;lt;error to="killJob"/&amp;gt;
        &amp;lt;/action&amp;gt;
&amp;lt;kill name="killJob"&amp;gt;
            &amp;lt;message&amp;gt;"Killed job due to error: ${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;job.props:&lt;/P&gt;&lt;PRE&gt;nameNode=hdfs://FQDN:8020
jobTracker=FQDN:8050
queueName=default
oozie.libpath=/user/oozie/share/lib/, /user/oozie/share/lib/lib_20160427195409
oozie.use.system.libpath=true
oozie.wf.application.path=${nameNode}/user/${user.name}/scheduledimport
start=2016-04-26T00:00Z
end=2016-12-31T00:00Z
workflowAppUri=${nameNode}/user/${user.name}/scheduledimport&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 May 2016 14:35:45 GMT</pubDate>
    <dc:creator>sim6</dc:creator>
    <dc:date>2016-05-04T14:35:45Z</dc:date>
    <item>
      <title>what is xmlns in oozie workflows?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-xmlns-in-oozie-workflows/m-p/130090#M27154</link>
      <description>&lt;PRE&gt;What exactly is xmls attribute in oozie workflows? &lt;/PRE&gt;&lt;P&gt;I am trying to run a sqoop command but I keep getting &lt;/P&gt;&lt;PRE&gt;ava.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.SqoopMain not found&lt;/PRE&gt;&lt;P&gt;Now, I have tried everything suggested. Set the permissions right. Have /share/lib in /user/oozie. &lt;/P&gt;&lt;P&gt;Running oozie jobs from oozie user only. &lt;/P&gt;&lt;P&gt;Just wondering if xmlns could be the problem? I am using ambari.&lt;/P&gt;&lt;P&gt;This is what I get when I check my versions:&lt;/P&gt;&lt;PRE&gt;sqoop version
Warning: /usr/hdp/2.4.0.0-169/hbase does not exist! HBase imports will fail.
Please set $HBASE_HOME to the root of your HBase installation.
Warning: /usr/hdp/2.4.0.0-169/accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
16/05/04 12:54:07 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6.2.4.0.0-169
Sqoop 1.4.6.2.4.0.0-169
git commit id c327581e17e308322d77a2ae245d0287c0e488d4
Compiled by jenkins on Wed Feb 10 08:35:28 UTC 2016
[oozie@warehouse root]$ oozie version
Oozie client build version: 4.2.0.2.4.0.0-169&lt;/PRE&gt;&lt;P&gt;My workflow has;&lt;/P&gt;&lt;PRE&gt;&amp;lt;workflow-app name="once-a-day" xmlns="uri:oozie:workflow:0.1"&amp;gt;
&amp;lt;start to="sqoopAction"/&amp;gt;
        &amp;lt;action name="sqoopAction"&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;command&amp;gt;list-tables --connect jdbc:mysql://FQDN/erp --username hive --password hive
                    &amp;lt;/command&amp;gt;
                   &amp;lt;archive&amp;gt;/lib/mysql-connector-java-5.1.38-bin.jarz#mysql-connector-java-5.1.38-bin.jar&amp;lt;/archive&amp;gt;
                &amp;lt;/sqoop&amp;gt;
                &amp;lt;ok to="end"/&amp;gt;
                &amp;lt;error to="killJob"/&amp;gt;
        &amp;lt;/action&amp;gt;
&amp;lt;kill name="killJob"&amp;gt;
            &amp;lt;message&amp;gt;"Killed job due to error: ${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;job.props:&lt;/P&gt;&lt;PRE&gt;nameNode=hdfs://FQDN:8020
jobTracker=FQDN:8050
queueName=default
oozie.libpath=/user/oozie/share/lib/, /user/oozie/share/lib/lib_20160427195409
oozie.use.system.libpath=true
oozie.wf.application.path=${nameNode}/user/${user.name}/scheduledimport
start=2016-04-26T00:00Z
end=2016-12-31T00:00Z
workflowAppUri=${nameNode}/user/${user.name}/scheduledimport&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 May 2016 14:35:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-xmlns-in-oozie-workflows/m-p/130090#M27154</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-05-04T14:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: what is xmlns in oozie workflows?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-xmlns-in-oozie-workflows/m-p/130091#M27155</link>
      <description>&lt;P&gt;xmlns stands for XML Name Space, you can find general introduction &lt;A href="http://www.w3schools.com/xml/xml_namespaces.asp"&gt;here&lt;/A&gt;. In Oozie workflows there are 2 xmlns specified, the one on top: &lt;/P&gt;&lt;PRE&gt;&amp;lt;workflow-appname="once-a-day"xmlns="uri:oozie:workflow:0.1"&amp;gt;&lt;/PRE&gt;&lt;P&gt;defines XML tags for Oozie workflow files in general. The other one: &lt;/P&gt;&lt;PRE&gt;&amp;lt;sqoop xmlns="uri:oozie:sqoop-action:0.2"&amp;gt;&lt;/PRE&gt;&lt;P&gt;defines XML tags specific to Sqoop action, you can find its definition &lt;A href="https://oozie.apache.org/docs/4.2.0/DG_SqoopActionExtension.html"&gt;here&lt;/A&gt;. In your case xmlns is not a problem. If it were Oozie would reject your workflow xml file as incorrect, for example, because of using non-existent tags, or existent ones in a wrong way.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 16:18:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/what-is-xmlns-in-oozie-workflows/m-p/130091#M27155</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-05-04T16:18:05Z</dc:date>
    </item>
  </channel>
</rss>

