title: 400 Bad Request executing oozie job
body: <p>I'm trying to execute an Oozie job via it's Web services API (Oozie 4.1.0-cdh5.15.2). Previously this job was successfully executed via Oozie command line API and the most parameters were provided as the command parameters.</p>
  
  <p>The workflow.xml is currently on the HDFS, so I'm just trying to send job properties in XML as it is specified in the <a href="https://oozie.apache.org/docs/4.1.0/WebServicesAPI.html#Job_and_Jobs_End-Points" rel="nofollow noreferrer">documentation</a>:</p>
  
  <pre><code>POST /oozie/v1/jobs
  Content-Type: application/xml;charset=UTF-8
  .
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
      &lt;property&gt;
          &lt;name&gt;oozie.use.system.libpath&lt;/name&gt;
          &lt;value&gt;true&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
          &lt;name&gt;oozie.credentials.skip&lt;/name&gt;
          &lt;value&gt;true&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
          &lt;name&gt;oozie.wf.application.path&lt;/name&gt;
          &lt;value&gt;hdfs://myownhdfs.com:8020/path/to/oozie/workflow/workflow.xml&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
          &lt;name&gt;jobTracker&lt;/name&gt;
          &lt;value&gt;myownhdfs.com:8032&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
          &lt;name&gt;nameNode&lt;/name&gt;
          &lt;value&gt;hdfs://myownhdfs.com:8020&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
          &lt;name&gt;customScripts&lt;/name&gt;
          &lt;value&gt;/nfs/path/to/scripts&lt;/value&gt;
      &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>My workflow.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;workflow-app
          xmlns="uri:oozie:workflow:0.5"
          name="wf-check"&gt;
      &lt;global&gt;
          &lt;job-tracker&gt;${jobTracker}&lt;/job-tracker&gt;
          &lt;name-node&gt;${nameNode}&lt;/name-node&gt;
      &lt;/global&gt;
      &lt;start to="py-check" /&gt;
      &lt;action name="py-check"&gt;
          &lt;python xmlns="uri:oozie:custom-python-action:0.1"&gt;
              &lt;custom-scripts&gt;${customScripts}&lt;/custom-scripts&gt;
              &lt;script&gt;foo/bar/myscript.py&lt;/script&gt;
              &lt;debug-sleep-begin&gt;0&lt;/debug-sleep-begin&gt;
              &lt;debug-sleep-end&gt;0&lt;/debug-sleep-end&gt;
              &lt;log-level&gt;DEBUG&lt;/log-level&gt;
              &lt;capture-output /&gt;
          &lt;/python&gt;
          &lt;ok to="end" /&gt;
          &lt;error to="fail" /&gt;
      &lt;/action&gt;
      &lt;kill name="fail"&gt;
          &lt;message&gt;Python failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&lt;/message&gt;
      &lt;/kill&gt;
      &lt;end name="end" /&gt;
  &lt;/workflow-app&gt;
  </code></pre>
  
  <p>However I only get <strong>400 Bad Request: The request sent by the client was syntactically incorrect.</strong>.</p>
  
  <p>Does anybody has a hint, what I could've done wrong?</p>