You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Andras Piros (JIRA)" <ji...@apache.org> on 2018/09/21 12:27:00 UTC

[jira] [Updated] (OOZIE-3347) [examples] Fix Fluent Job global example

     [ https://issues.apache.org/jira/browse/OOZIE-3347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andras Piros updated OOZIE-3347:
--------------------------------
    Summary: [examples] Fix Fluent Job global example  (was: fix fluentjob Global example)

> [examples] Fix Fluent Job global example
> ----------------------------------------
>
>                 Key: OOZIE-3347
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3347
>             Project: Oozie
>          Issue Type: Improvement
>          Components: fluent-job
>    Affects Versions: trunk
>            Reporter: Andras Salamon
>            Assignee: Andras Salamon
>            Priority: Major
>             Fix For: 5.1.0
>
>         Attachments: OOZIE-3347-1.patch
>
>
> The fluentjob Global example is not working. It generates the following {{XML}} file:
> {noformat}<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <workflow:workflow-app xmlns:workflow="uri:oozie:workflow:1.0" name="workflow-with-global">
>     <workflow:global>
>         <workflow:resource-manager>${resourceManager}</workflow:resource-manager>
>         <workflow:name-node>${nameNode}</workflow:name-node>
>         <workflow:launcher>
>             <workflow:memory.mb>1024</workflow:memory.mb>
>             <workflow:vcores>1</workflow:vcores>
>             <workflow:queue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
>             <workflow:sharelib xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
>             <workflow:view-acl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
>             <workflow:modify-acl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
>         </workflow:launcher>
>         <workflow:job-xml>job.xml</workflow:job-xml>
>         <workflow:configuration>
>             <workflow:property>
>                 <workflow:name>key1</workflow:name>
>                 <workflow:value>value1</workflow:value>
>             </workflow:property>
>         </workflow:configuration>
>     </workflow:global>
>     <workflow:start to="end"/>
>     <workflow:kill name="kill">
>         <workflow:message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</workflow:message>
>     </workflow:kill>
>     <workflow:end name="end"/>
> </workflow:workflow-app>
> {noformat}
> Checking the XML using {{-validatejar}} gives the following error:
> {noformat}Error: E0701 : E0701: XML schema error, /var/folders/1c/dqsz948s2xq625h45d313ysw0000gp/T/workflow6183755144852401125.xml, org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 99; cvc-elt.3.1: Attribute 'http://www.w3.org/2001/XMLSchema-instance,nil' must not appear on element 'workflow:queue', because the {nillable} property of 'workflow:queue' is false
> {noformat}
> The example looks unfinished to me.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)