0

我有一个 oozie 工作流程,其中有许多控制和操作节点。为了便于在 Hue 浏览器中跟踪操作,我尝试通过在节点名称前添加 1、2、3 等来对控制和操作节点进行编号。这是工作流程片段

<workflow-app name="reporting_W_error_audit_report" xmlns="uri:oozie:workflow:0.4">
    <start to="1_JobInitiated_SendMail" />
    <action name='1_JobInitiated_SendMail'>
        <email xmlns='uri:oozie:email-action:0.1'>
            <to>${failureEmailToAddress}</to>
            <subject>The workflow has been kicked off at ${timestamp()}</subject>
            <body>The workflow "${wf:name()}" with workflow id "${wf:id()}" has been started at ${timestamp()} and is currently running. You will get further notification upon its Success or Failure.</body>
        </email>
        <ok to='2_rename_trigger_flag_file_processing'/>
        <error to='2_rename_trigger_flag_file_processing' />
    </action>
    <action name="02_rename_trigger_flag_file_processing">
        <fs>
...
...

在验证工作流程时,我收到以下错误。

Error: E0701: XML schema error, /dn01/home/testarea/wf.xml, org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 40; cvc-pattern-valid: Value '1_JobInitiated_SendMail' is not facet-valid with respect to pattern '([a-zA-Z_]([\-_a-zA-Z0-9])*){1,39}' for type 'IDENTIFIER'.

当我想对节点名称进行编号时,如何摆脱这个错误?

4

1 回答 1

0

我觉得我应该发布答案,因为我设法让它工作。我发现节点的名称不能以数字开头,但它可以在其他任何地方容纳数字。我只是尝试用后缀数字命名其中一个节点并且它起作用了。下面的工作代码片段..

<workflow-app name="reporting_W_error_audit_report" xmlns="uri:oozie:workflow:0.4">
    <start to="JobInitiated_SendMail_01" />
    <action name='JobInitiated_SendMail_01'>
        <email xmlns='uri:oozie:email-action:0.1'>
            <to>${failureEmailToAddress}</to>
            <subject>The workflow has been kicked off at ${timestamp()}</subject>
            <body>The workflow "${wf:name()}" with workflow id "${wf:id()}" has been started at ${timestamp()} and is currently running. You will get further notification upon its Success or Failure.</body>
        </email>
        <ok to='rename_trigger_flag_file_processing_02'/>
        <error to='rename_trigger_flag_file_processing_02' />
    </action>
    <action name="rename_trigger_flag_file_processing_02">
...
...
于 2017-11-07T01:05:37.477 回答