旭g 2020-12-11 15:20 采纳率: 0%
浏览 29

在oozie中,运行分支,出现以下错误

Error: E0701 : E0701: XML schema error, Element type "join" must be followed by either attribute specifications, ">" or "/>".

以下是我的flowwork

<workflow-app xmlns="uri:oozie:workflow:0.4" name="shell-wf">
<!--开始节点-->
<start to="p1-shell-node"/>
<!--动作节点-->
<action name="p1-shell-node">
    <!--shell动作-->
    <shell xmlns="uri:oozie:shell-action:0.2">
        <job-tracker>${jobTracker}</job-tracker>
        <name-node>${nameNode}</name-node>
        <configuration>
            <property>
                <name>mapred.job.queue.name</name>
                <value>${queueName}</value>
            </property>
        </configuration>
        <!--要执行的脚本-->
        <exec>mkdir</exec>
        <argument>/opt/module/d1</argument>
        <capture-output/>
    </shell>
    <ok to="forking"/>
    <error to="fail"/>
</action>

<action name="p2-shell-node">
    <!--shell动作-->
    <shell xmlns="uri:oozie:shell-action:0.2">
        <job-tracker>${jobTracker}</job-tracker>
        <name-node>${nameNode}</name-node>
        <configuration>
            <property>
                <name>mapred.job.queue.name</name>
                <value>${queueName}</value>
            </property>
        </configuration>
        <!--要执行的脚本-->
        <exec>mkdir</exec>
        <argument>/opt/module/d2</argument>
        <capture-output/>
    </shell>
    <ok to="joining"/>
    <error to="fail"/>
</action>

<action name="p3-shell-node">
    <!--shell动作-->
    <shell xmlns="uri:oozie:shell-action:0.2">
        <job-tracker>${jobTracker}</job-tracker>
        <name-node>${nameNode}</name-node>
        <configuration>
            <property>
                <name>mapred.job.queue.name</name>
                <value>${queueName}</value>
            </property>
        </configuration>
        <!--要执行的脚本-->
        <exec>mkdir</exec>
        <argument>/opt/module/d3</argument>
        <capture-output/>
    </shell>
    <ok to="joining"/>
    <error to="fail"/>
</action>


<action name="p4-shell-node">
    <!--shell动作-->
    <shell xmlns="uri:oozie:shell-action:0.2">
        <job-tracker>${jobTracker}</job-tracker>
        <name-node>${nameNode}</name-node>
        <configuration>
            <property>
                <name>mapred.job.queue.name</name>
                <value>${queueName}</value>
            </property>
        </configuration>
        <!--要执行的脚本-->
        <exec>mkdir</exec>
        <argument>/opt/module/d4</argument>
        <capture-output/>
    </shell>
    <ok to="end"/>
    <error to="fail"/>
</action>

<fork name ="forking">
        <path start ="p2-shell-node"/>
        <path start ="p3-shell-node"/>
    </fork>

<join name="joining” to="p4-shell-node"/>

<!--kill节点-->
<kill name="fail">
    <message>Shell action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<!--结束节点-->
<end name="end"/>
</workflow-app>

  • 写回答

1条回答 默认 最新

  • 憧憬blog 2023-03-14 23:55
    关注

    根据您提供的信息,错误信息显示"join"元素类型后必须跟随属性规范,">"或"/>",而您的代码中,该行应该是"”,但是该行的引号不完整,可能是由于复制时出现了问题。请尝试修改该行代码,将引号完整,然后重新运行代码。如果问题仍然存在,您可以检查oozie XML模式中的join元素的标准写法,确保您的代码与其相匹配。

    评论

报告相同问题?

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么