E0701 OOZIE工作流程中的XML模式错误 [英] E0701 XML schema error in OOZIE workflow

查看:465
本文介绍了E0701 OOZIE工作流程中的XML模式错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是我的工作流程.xml

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:

错误:E0701:E0701:XML模式错误,cvc-elt.1.a:找不到元素"action"的声明.

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

但是,oozie validatevalidate.xml返回: 有效的worflow-app

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

过去曾遇到并解决过类似问题的任何人吗?

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

推荐答案

确认是否已将工作流.xml复制到hdfs.您无需将job.properties复制到hdfs,而必须将所有其他文件和库复制到hdfs

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

这篇关于E0701 OOZIE工作流程中的XML模式错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆