2017-02-13 35 views
0

我試圖運行Oozie的工作流程,但我得到了以下錯誤:E0701:XML模式錯誤,CVC圖案有效Oozie的錯誤

E0701: XML schema error, cvc-pattern-valid: Value 'mockup and mapping table update' is not facet-valid with respect to pattern '([a-zA-Z_]([\-_a-zA-Z0-9])*){1,39}' for type 'IDENTIFIER'.

我在我的查詢中使用下面的正則表達式。有什麼問題嗎?當我通過Hive或CLI運行時,一切正常。

regexp_replace(id_col, '^0|[a-zA-Z]+$', '')

下面是我workflow.xml

<workflow-app name="proj_map" xmlns="uri:oozie:workflow:0.4"> 
    <start to="sources_creation"/> 
    <action name="sources_creation"> 
     <hive xmlns="uri:oozie:hive-action:0.2"> 
      <job-tracker>${jobTracker}</job-tracker> 
      <name-node>${nameNode}</name-node> 
      <script>/user/sin/oozie/sources_creation.hql</script> 
     </hive> 
     <ok to="mockup and mapping table update"/> 
     <error to="kill"/> 
    </action> 
    <action name="mockup and mapping table update"> 
     <hive xmlns="uri:oozie:hive-action:0.2"> 
      <job-tracker>${jobTracker}</job-tracker> 
      <name-node>${nameNode}</name-node> 
      <script>/user/sin/oozie/project_mapping.hql</script> 
     </hive> 
     <ok to="end"/> 
     <error to="kill"/> 
    </action> 
    <kill name="kill"> 
     <message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message> 
    </kill> 
    <end name="end"/> 
</workflow-app> 

回答

1

操作名稱不能有空格。 <action name="mockup and mapping table update"\>。從操作名稱中刪除空格。它應該在事後工作。

+0

唷......我怎麼會錯過這個!!!! – user2810706