title: Oozie Workflow with Archive Action
body: <p>I would like to make an oozie workflow where the final step of success would be to "Archive" the results.</p>
  
  <p>The command in the shell to do it is</p>
  
  <pre><code>hadoop archive -archiveName=XXX.har -p /some/random/parent directorToArhive pathToArchiveDestination
  </code></pre>
  
  <p>I have tried the following</p>
  
  <pre><code>&lt;workflow-app name="HARD_CODED_ARCHIVE_TEST" xmlns="uri:oozie:workflow:0.4"&gt;
  
      &lt;start to="archive"/&gt;
      &lt;action name="archive"&gt;
          &lt;archive archiveName="xxx.har" src="/root/src/dir" dest="/path/to/desired/archive/location"/&gt;
          &lt;ok to="end"/&gt;
          &lt;error to="kill"/&gt;
      &lt;/action&gt;
  
      &lt;kill name="kill"&gt;
          &lt;message&gt;Action 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>The Error I get is something like the following:</p>
  
  <pre><code>WARNING: Exception in Runloop of thread: main with message: E0701: XML schema error, cvc-complex-type.2.4.a: Invalid content was found starting with element 'archive'. One of '{"uri:oozie:workflow:0.4":map-reduce, "uri:oozie:workflow:0.4":pig, "uri:oozie:workflow:0.4":sub-workflow, "uri:oozie:workflow:0.4":fs, "uri:oozie:workflow:0.4":java, WC[##other:"uri:oozie:workflow:0.4"]}' is expected.
  </code></pre>
  
  <p>So it is very clear that I can't do this.  because the oozie workflow schema does not support the "archive" action.   </p>
  
  <p>I really don't want to run this via a cron as I would like to archive immediately after a workflow completes successfully how do I do this.</p>