gpt4 book ai didi

hadoop - Oozie工作流XML错误

转载 作者:行者123 更新时间:2023-12-02 21:47:25 25 4
gpt4 key购买 nike

运行包含以下行的oozie工作流程:

 <?xml version="1.0" encoding="UTF-8"?>
<workflow-app xmlns="uri:oozie:workflow:0.2" name="cs-wf-fork-join">
    <start to="fork-node"/>

    <fork name="fork-node">
        <path start="my-node" />
    </fork>

我收到以下错误:

Error: E0701 : E0701: XML schema error, cvc-complex-type.2.3: Element 'fork' cannot have character [children], because the type's content type is element-only.



我正在使用此指南: http://www.thecloudavenue.com/2013/10/executing-oozie-workflow-with-pig-hive.html

最佳答案

检查schema,似乎您在fork中至少需要2个元素:

<xs:complexType name="FORK">
<xs:sequence>
<xs:element name="path" type="workflow:FORK_TRANSITION" minOccurs="2" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="workflow:IDENTIFIER" use="required"/>
</xs:complexType>

另外,您可以使用 command line validation验证xml

关于hadoop - Oozie工作流XML错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23980090/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com