简体   繁体   English

Oozie工作流XML错误

[英]Oozie workflow xml error

Running an oozie workflow that include these lines: 运行包含以下行的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>

I get the following error: 我收到以下错误:

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. 错误:E0701:E0701:XML模式错误,cvc-complex-type。2.3:元素“ fork”不能具有字符[children],因为该类型的内容类型仅是元素。

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

Checking the schema , seem that you need at least 2 element in the fork: 检查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>

Also, you can use command line validation for validate the xml 另外,您可以使用命令行验证来验证xml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM