Uploaded image for project: 'CDH (READ-ONLY)'
  1. CDH (READ-ONLY)
  2. DISTRO-261

oozie does not validate workflows using 0.2 schema

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: CDH3u0
    • Fix Version/s: CDH3u3
    • Component/s: Oozie
    • Labels:
      None

      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[$

      {wf:errorMessage(wf:lastErrorNode())}

      ]</message>
      </kill>
      <end name="end"/>
      </workflow-app>
      --------------------------

      1. oozie validate workflow.xml
        Error: Invalid workflow-app, org.xml.sax.SAXParseException: cvc-elt.1:
        Cannot find the declaration of element 'workflow-app'.

        Attachments

          Activity

            People

            • Assignee:
              tucu Alejandro Abdelnur
              Reporter:
              jwarren James Warren
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: