Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Hi,
Validating the workflow using "oozie validate" command doesnt work with schema 0.2
workflow.xml
========
<workflow-app xmlns='uri:oozie:workflow:0.2' name='pig-wf'>
<start to='pig1' />
<action name='pig1'>
<pig>
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<configuration>
<property>
<name>mapred.job.queue.name</name>
<value>${queueName}</value>
</property>
</configuration>
<script>id.pig</script>
</pig>
<ok to='end' />
<error to='fail' />
</action>
<kill name='fail'>
<message>Pig failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<end name='end' />
</workflow-app>
=========
[anithar pig]$ oozie validate workflow.xml
Error: Invalid workflow-app, org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element
'workflow-app'.
This workflow.xml when run after putting in hdfs works good.
The validate command works fine if the schema is 0.1.
=========
<workflow-app xmlns='uri:oozie:workflow:0.1' name='pig-wf'>
=========
[anithar pig]$ oozie validate workflow.xml
Valid worflow-app
I am assuming, from the code, i see that for the validate command, the schema is checked across only
oozie-workflow-0.1.xsd. This is the schema definition for 0.1.
------------
try
catch (Exception ex)
{ throw new OozieCLIException("Invalid workflow-app, " + ex.toString(), ex); }-------------
Regards,
Anitha