Details
Description
XML validation of oozie 0.2 workflows throws a parsing exception; example provided below. The workflow still executes correctly after being uploaded to HDFS, but it would help with debugging to be able to validate workflows locally beforehand.
Thanks!
--------------------------
<workflow-app xmlns="uri:oozie:workflow:0.2" name="mail-wf">
<start to="mail"/>
<action name="mail">
<java>
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<configuration>
<property>
<name>mapred.job.queue.name</name>
<value>${queueName}</value>
</property>
</configuration>
<main-class>com.jw.oozie.MailNotifier</main-class>
<arg>${mailRecipients}</arg>
<arg>${mailSubject}</arg>
<arg>${mailMessage}</arg>
</java>
<ok to="end"/>
<error to="fail"/>
</action>
<kill name="fail">
<message>Java failed, error message[$
]</message>
</kill>
<end name="end"/>
</workflow-app>
--------------------------
- oozie validate workflow.xml
Error: Invalid workflow-app, org.xml.sax.SAXParseException: cvc-elt.1:
Cannot find the declaration of element 'workflow-app'.