Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
trunk
-
None
Description
The fluentjob Global example is not working. It generates the following XML file:
<?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>
Checking the XML using -validatejar gives the following error:
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
The example looks unfinished to me.