E0701 XML schema error in OOZIE workflow

匿名 (未验证) 提交于 2019-12-03 08:59:04

问题:

The following is my workflow.xml

<workflow-app xmlns="uri:oozie:workflow:0.3" name="import-job"> <start to="createtimelinetable" />  <action name="createtimelinetable">    <sqoop xmlns="uri:oozie:sqoop-action:0.3">               <job-tracker>${jobTracker}</job-tracker>               <name-node>${nameNode}</name-node>               <configuration>                   <property>                       <name>mapred.compress.map.output</name>                       <value>true</value>                   </property>               </configuration>               <command>import --connect jdbc:mysql://10.65.220.75:3306/automation --table ABC --username root</command>    </sqoop>    <ok to="end"/>    <error to="end"/>  </action>  <end name="end"/> </workflow-app> 

Getting the following error on trying to submit the job:

Error: E0701 : E0701: XML schema error, cvc-elt.1.a: Cannot find the declaration of element 'action'.

However, oozie validate workflow.xml returns: Valid worflow-app

Anyone who faced and resolved a similar issue in the past?

回答1:

Confirm if you have copied your workflow.xml to hdfs. You need not copy job.properties to hdfs but have to copy all the other files and libraries to hdfs



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!