如何解决“Oozie XML 模式错误 E0701”

问题描述

下面是我尝试运行的一个简单的 Oozie 脚本

<!-- This is a comment -->
<workflow-app xmlns = "uri:oozie:workflow:0.4" name = "simple-Workflow">
   <start to = "Create_External_Table" />

   <!-- Step 1 -->
   
   <action name = "Create_External_Table">
      <hive xmlns = "uri:oozie:hive-action:0.4">
         <job-tracker>quickstart.cloudera:8088</job-tracker>
         <name-node>hdfs://quickstart.cloudera:8020</name-node>
         <script>/user/cloudera/external.hive</script>
      </hive>

      <ok to = "Create_orc_Table" />
      <error to = "kill_job" />
   </action>

   <!-- Step 2 -->

   <action name = "Create_orc_Table">
      <hive xmlns = "uri:oozie:hive-action:0.4">
         <job-tracker>quickstart.cloudera:8088</job-tracker>
         <name-node>hdfs://quickstart.cloudera:8020</name-node>
         <script>/user/cloudera/orc.hive</script>
      </hive>
        
      <ok to = "Insert_into_Table" />
      <error to = "kill_job" />
   </action>

   <!-- Step 3 -->
      
   <action name = "Insert_into_Table">
      <hive xmlns = "uri:oozie:hive-action:0.4">
         <job-tracker>quickstart.cloudera:8088</job-tracker>
         <name-node>hdfs://quickstart.cloudera:8020</name-node>
         <script>/user/cloudera/copydata.hql</script>
         <param>cars</param>
      </hive>
        
      <ok to = "end" />
      <error to = "kill_job" />
   </action>
   
   <kill name = "kill_job">
      <message>Job Failed</message>
   </kill>
    
   <end name = "end" />

</workflow-app>

然后我尝试运行脚本ang得到以下错误

Error: E0701 : E0701: XML schema error,The content of elements must consist of well-formed character data or markup.

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)