Added: 
websites/staging/oozie/trunk/content/docs/5.0.0/DG_Hive2ActionExtension.html
==============================================================================
--- 
websites/staging/oozie/trunk/content/docs/5.0.0/DG_Hive2ActionExtension.html 
(added)
+++ 
websites/staging/oozie/trunk/content/docs/5.0.0/DG_Hive2ActionExtension.html 
Mon Apr  9 14:26:49 2018
@@ -0,0 +1,470 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at Apr 9, 2018 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Oozie - </title>
+    <link rel="stylesheet" href="./css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="./css/site.css" />
+    <link rel="stylesheet" href="./css/print.css" media="print" />
+
+      
+    <script type="text/javascript" 
src="./js/apache-maven-fluido-1.4.min.js"></script>
+
+    
+                  </head>
+        <body class="topBarDisabled">
+          
+        
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                    <a href="https://oozie.apache.org/"; 
id="bannerLeft">
+                                                                               
         <img src="https://oozie.apache.org/images/oozie_200x.png";  
alt="Oozie"/>
+                </a>
+                      </div>
+        <div class="pull-right">  </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="../../" title="Apache">
+        Apache</a>
+                    <span class="divider">/</span>
+      </li>
+            <li class="">
+                    <a href="../../" title="Oozie">
+        Oozie</a>
+                    <span class="divider">/</span>
+      </li>
+            <li class="">
+                    <a href="../" title="docs">
+        docs</a>
+                    <span class="divider">/</span>
+      </li>
+            <li class="">
+                    <a href="./" title="5.0.0">
+        5.0.0</a>
+                    <span class="divider">/</span>
+      </li>
+        <li class="active ">Oozie - </li>
+        
+                
+                    
+                  <li id="publishDate" class="pull-right"><span 
class="divider">|</span> Last Published: 2018-04-09</li>
+              <li id="projectVersion" class="pull-right">
+                    Version: 5.0.0
+        </li>
+            
+                            </ul>
+      </div>
+
+            
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+  </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                             <a href="http://maven.apache.org/"; title="Built 
by Maven" class="poweredBy">
+        <img class="builtBy" alt="Built by Maven" 
src="./images/logos/maven-feather.png" />
+      </a>
+                  </div>
+          </div>
+        </div>
+        
+                
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <p></p>
+<p><a href="./index.html">::Go back to Oozie Documentation Index::</a>
+</p>
+<hr />
+<a name="Oozie_Hive_2_Action_Extension"></a>
+<div class="section"><h2> Oozie Hive 2 Action Extension</h2>
+<p><ul><ul><li><a href="#Hive_2_Action">Hive 2 Action</a>
+<ul><li><a href="#Security">Security</a>
+</li>
+</ul>
+</li>
+<li><a href="#Appendix_Hive_2_XML-Schema">Appendix, Hive 2 XML-Schema</a>
+<ul><li><a href="#AE.A_Appendix_A_Hive_2_XML-Schema">AE.A Appendix A, Hive 2 
XML-Schema</a>
+<ul><li><a href="#Hive_2_Action_Schema_Version_1.0">Hive 2 Action Schema 
Version 1.0</a>
+</li>
+<li><a href="#Hive_2_Action_Schema_Version_0.2">Hive 2 Action Schema Version 
0.2</a>
+</li>
+<li><a href="#Hive_2_Action_Schema_Version_0.1">Hive 2 Action Schema Version 
0.1</a>
+</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</ul>
+</p>
+<a name="Hive_2_Action"></a>
+<div class="section"><h3>Hive 2 Action</h3>
+<p>The <tt>hive2</tt>
+ action runs Beeline to connect to Hive Server 2.</p>
+<p>The workflow job will wait until the Hive Server 2 job completes before
+continuing to the next action.</p>
+<p>To run the Hive Server 2 job, you have to configure the <tt>hive2</tt>
+ action with the <tt>resource-manager</tt>
+, <tt>name-node</tt>
+, <tt>jdbc-url</tt>
+,
+ <tt>password</tt>
+ elements, and either Hive's <tt>script</tt>
+ or <tt>query</tt>
+ element, as well as the necessary parameters and configuration.</p>
+<p>A <tt>hive2</tt>
+ action can be configured to create or delete HDFS directories
+before starting the Hive Server 2 job.</p>
+<p>Oozie EL expressions can be used in the inline configuration. Property
+values specified in the <tt>configuration</tt>
+ element override values specified
+in the <tt>job-xml</tt>
+ file.</p>
+<p>As with Hadoop <tt>map-reduce</tt>
+ jobs, it is possible to add files and
+archives in order to make them available to Beeline. Refer to the
+[WorkflowFunctionalSpec#FilesArchives][Adding Files and Archives for the Job]
+section for more information about this feature.</p>
+<p>Oozie Hive 2 action supports Hive scripts with parameter variables, their
+syntax is <tt>${VARIABLES}</tt>
+.</p>
+<p><b>Syntax:</b>
+</p>
+<p><pre>
+&lt;workflow-app name=&quot;[WF-DEF-NAME]&quot; 
xmlns=&quot;uri:oozie:workflow:1.0&quot;&gt;
+    ...
+    &lt;action name=&quot;[NODE-NAME]&quot;&gt;
+        &lt;hive2 xmlns=&quot;uri:oozie:hive2-action:1.0&quot;&gt;
+            &lt;resource-manager&gt;[RESOURCE-MANAGER]&lt;/resource-manager&gt;
+            &lt;name-node&gt;[NAME-NODE]&lt;/name-node&gt;
+            &lt;prepare&gt;
+               &lt;delete path=&quot;[PATH]&quot;/&gt;
+               ...
+               &lt;mkdir path=&quot;[PATH]&quot;/&gt;
+               ...
+            &lt;/prepare&gt;
+            &lt;job-xml&gt;[HIVE SETTINGS FILE]&lt;/job-xml&gt;
+            &lt;configuration&gt;
+                &lt;property&gt;
+                    &lt;name&gt;[PROPERTY-NAME]&lt;/name&gt;
+                    &lt;value&gt;[PROPERTY-VALUE]&lt;/value&gt;
+                &lt;/property&gt;
+                ...
+            &lt;/configuration&gt;
+            &lt;jdbc-url&gt;[jdbc:hive2://HOST:10000/default]&lt;/jdbc-url&gt;
+            &lt;password&gt;[PASS]&lt;/password&gt;
+            &lt;script&gt;[HIVE-SCRIPT]&lt;/script&gt;
+            &lt;param&gt;[PARAM-VALUE]&lt;/param&gt;
+                ...
+            &lt;param&gt;[PARAM-VALUE]&lt;/param&gt;
+            &lt;argument&gt;[ARG-VALUE]&lt;/argument&gt;
+                ...
+            &lt;argument&gt;[ARG-VALUE]&lt;/argument&gt;
+            &lt;file&gt;[FILE-PATH]&lt;/file&gt;
+            ...
+            &lt;archive&gt;[FILE-PATH]&lt;/archive&gt;
+            ...
+        &lt;/hive2&gt;
+        &lt;ok to=&quot;[NODE-NAME]&quot;/&gt;
+        &lt;error to=&quot;[NODE-NAME]&quot;/&gt;
+    &lt;/action&gt;
+    ...
+&lt;/workflow-app&gt;
+</pre></p>
+<p>The <tt>prepare</tt>
+ element, if present, indicates a list of paths to delete
+or create before starting the job. Specified paths must start with <tt><a 
href="./hdfs://HOST:PORT.html">hdfs://HOST:PORT</a>
+</tt>
+.</p>
+<p>The <tt>job-xml</tt>
+ element, if present, specifies a file containing configuration
+for Beeline. Multiple <tt>job-xml</tt>
+ elements are allowed in order to specify multiple <tt>job.xml</tt>
+ files.</p>
+<p>The <tt>configuration</tt>
+ element, if present, contains configuration
+properties that are passed to the Beeline job.</p>
+<p>The <tt>jdbc-url</tt>
+ element must contain the JDBC URL for the Hive Server 2.  Beeline will use 
this to know where to connect to.</p>
+<p>The <tt>password</tt>
+ element must contain the password of the current user.  However, the 
<tt>password</tt>
+ is only used if Hive Server 2 is
+backed by something requiring a password (e.g. LDAP); non-secured Hive Server 
2 or Kerberized Hive Server 2 don't require a password
+so in those cases the <tt>password</tt>
+ is ignored and can be omitted from the action XML.  It is up to the user to 
ensure that a password
+is specified when required.</p>
+<p>The <tt>script</tt>
+ element must contain the path of the Hive script to
+execute. The Hive script can be templatized with variables of the form
+=${VARIABLE}=. The values of these variables can then be specified
+using the <tt>params</tt>
+ element.</p>
+<p>The <tt>query</tt>
+ element available from uri:oozie:hive2-action:0.2, can be used instead of the 
<tt>script</tt>
+ element. It allows for embedding
+queries within the <tt>worklfow.xml</tt>
+ directly.  Similar to the <tt>script</tt>
+ element, it also allows for the templatization of variables
+in the form <tt>${VARIABLE}</tt>
+.</p>
+<p>The <tt>params</tt>
+ element, if present, contains parameters to be passed to
+the Hive script.</p>
+<p>The <tt>argument</tt>
+ element, if present, contains arguments to be passed as-is to Beeline.</p>
+<p>All the above elements can be parameterized (templatized) using EL
+expressions.</p>
+<p><b>Example:</b>
+</p>
+<p><pre>
+&lt;workflow-app name=&quot;sample-wf&quot; 
xmlns=&quot;uri:oozie:workflow:1.0&quot;&gt;
+    ...
+    &lt;action name=&quot;my-hive2-action&quot;&gt;
+        &lt;hive2 xmlns=&quot;uri:oozie:hive2-action:1.0&quot;&gt;
+            &lt;resource-manager&gt;foo:8032&lt;/resource-manager&gt;
+            &lt;name-node&gt;bar:8020&lt;/name-node&gt;
+            &lt;prepare&gt;
+                &lt;delete path=&quot;${jobOutput}&quot;/&gt;
+            &lt;/prepare&gt;
+            &lt;configuration&gt;
+                &lt;property&gt;
+                    &lt;name&gt;mapred.compress.map.output&lt;/name&gt;
+                    &lt;value&gt;true&lt;/value&gt;
+                &lt;/property&gt;
+            &lt;/configuration&gt;
+            
&lt;jdbc-url&gt;jdbc:hive2://localhost:10000/default&lt;/jdbc-url&gt;
+            &lt;password&gt;foo&lt;/password&gt;
+            &lt;script&gt;myscript.q&lt;/script&gt;
+            &lt;param&gt;InputDir=/home/rkanter/input-data&lt;/param&gt;
+            &lt;param&gt;OutputDir=${jobOutput}&lt;/param&gt;
+        &lt;/hive2&gt;
+        &lt;ok to=&quot;my-other-action&quot;/&gt;
+        &lt;error to=&quot;error-cleanup&quot;/&gt;
+    &lt;/action&gt;
+    ...
+&lt;/workflow-app&gt;
+</pre></p>
+<a name="Security"></a>
+<div class="section"><h4>Security</h4>
+<p>As mentioned above, <tt>password</tt>
+ is only used in cases where Hive Server 2 is backed by something requiring a 
password (e.g. LDAP).
+Non-secured Hive Server 2 and Kerberized Hive Server 2 don't require a 
password so in these cases it can be omitted.
+See <a href="./DG_UnifiedCredentialsModule.html">here</a>
+ for more information on the configuration for using the Hive Server 2 Action
+with a Kerberized Hive Server 2.</p>
+<a name="Appendix_Hive_2_XML-Schema"></a>
+</div>
+</div>
+<div class="section"><h3>Appendix, Hive 2 XML-Schema</h3>
+<a name="AE.A_Appendix_A_Hive_2_XML-Schema"></a>
+<div class="section"><h4>AE.A Appendix A, Hive 2 XML-Schema</h4>
+<a name="Hive_2_Action_Schema_Version_1.0"></a>
+<div class="section"><h5>Hive 2 Action Schema Version 1.0</h5>
+<p><pre>
+&lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;
+           xmlns:hive2=&quot;uri:oozie:hive2-action:1.0&quot; 
elementFormDefault=&quot;qualified&quot;
+           targetNamespace=&quot;uri:oozie:hive2-action:1.0&quot;&gt;
+.
+    &lt;xs:include schemaLocation=&quot;oozie-common-1.0.xsd&quot;/&gt;
+.
+    &lt;xs:element name=&quot;hive2&quot; type=&quot;hive2:ACTION&quot;/&gt;
+.
+    &lt;xs:complexType name=&quot;ACTION&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:choice&gt;
+                &lt;xs:element name=&quot;job-tracker&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+                &lt;xs:element name=&quot;resource-manager&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;/xs:choice&gt;
+            &lt;xs:element name=&quot;name-node&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;prepare&quot; 
type=&quot;hive2:PREPARE&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;launcher&quot; 
type=&quot;hive2:LAUNCHER&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;job-xml&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;configuration&quot; 
type=&quot;hive2:CONFIGURATION&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;jdbc-url&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;password&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:choice minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;&gt;
+                &lt;xs:element name=&quot;script&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+                &lt;xs:element name=&quot;query&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;/xs:choice&gt;
+            &lt;xs:element name=&quot;param&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;argument&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;file&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;archive&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+&lt;/xs:schema&gt;
+</pre></p>
+<a name="Hive_2_Action_Schema_Version_0.2"></a>
+</div>
+<div class="section"><h5>Hive 2 Action Schema Version 0.2</h5>
+<p><pre>
+&lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;
+           xmlns:hive2=&quot;uri:oozie:hive2-action:0.2&quot; 
elementFormDefault=&quot;qualified&quot;
+           targetNamespace=&quot;uri:oozie:hive2-action:0.2&quot;&gt;
+.
+    &lt;xs:element name=&quot;hive2&quot; type=&quot;hive2:ACTION&quot;/&gt;
+.
+    &lt;xs:complexType name=&quot;ACTION&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;job-tracker&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;name-node&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;prepare&quot; 
type=&quot;hive2:PREPARE&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;job-xml&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;configuration&quot; 
type=&quot;hive2:CONFIGURATION&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;jdbc-url&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;password&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:choice minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;&gt;
+                &lt;xs:element name=&quot;script&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+                &lt;xs:element name=&quot;query&quot;  
type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;/xs:choice&gt;
+            &lt;xs:element name=&quot;param&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;argument&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;file&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;archive&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;CONFIGURATION&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;property&quot; minOccurs=&quot;1&quot; 
maxOccurs=&quot;unbounded&quot;&gt;
+                &lt;xs:complexType&gt;
+                    &lt;xs:sequence&gt;
+                        &lt;xs:element name=&quot;name&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                        &lt;xs:element name=&quot;value&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                        &lt;xs:element name=&quot;description&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                    &lt;/xs:sequence&gt;
+                &lt;/xs:complexType&gt;
+            &lt;/xs:element&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;PREPARE&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;delete&quot; 
type=&quot;hive2:DELETE&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;mkdir&quot; type=&quot;hive2:MKDIR&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;DELETE&quot;&gt;
+        &lt;xs:attribute name=&quot;path&quot; type=&quot;xs:string&quot; 
use=&quot;required&quot;/&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;MKDIR&quot;&gt;
+        &lt;xs:attribute name=&quot;path&quot; type=&quot;xs:string&quot; 
use=&quot;required&quot;/&gt;
+    &lt;/xs:complexType&gt;
+.
+&lt;/xs:schema&gt;
+</pre></p>
+<a name="Hive_2_Action_Schema_Version_0.1"></a>
+</div>
+<div class="section"><h5>Hive 2 Action Schema Version 0.1</h5>
+<p><pre>
+&lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;
+           xmlns:hive2=&quot;uri:oozie:hive2-action:0.1&quot; 
elementFormDefault=&quot;qualified&quot;
+           targetNamespace=&quot;uri:oozie:hive2-action:0.1&quot;&gt;
+.
+    &lt;xs:element name=&quot;hive2&quot; type=&quot;hive2:ACTION&quot;/&gt;
+.
+    &lt;xs:complexType name=&quot;ACTION&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;job-tracker&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;name-node&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;prepare&quot; 
type=&quot;hive2:PREPARE&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;job-xml&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;configuration&quot; 
type=&quot;hive2:CONFIGURATION&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;jdbc-url&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;password&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;script&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;param&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;argument&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;file&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;archive&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;CONFIGURATION&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;property&quot; minOccurs=&quot;1&quot; 
maxOccurs=&quot;unbounded&quot;&gt;
+                &lt;xs:complexType&gt;
+                    &lt;xs:sequence&gt;
+                        &lt;xs:element name=&quot;name&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                        &lt;xs:element name=&quot;value&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                        &lt;xs:element name=&quot;description&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                    &lt;/xs:sequence&gt;
+                &lt;/xs:complexType&gt;
+            &lt;/xs:element&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;PREPARE&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;delete&quot; 
type=&quot;hive2:DELETE&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;mkdir&quot; type=&quot;hive2:MKDIR&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;DELETE&quot;&gt;
+        &lt;xs:attribute name=&quot;path&quot; type=&quot;xs:string&quot; 
use=&quot;required&quot;/&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;MKDIR&quot;&gt;
+        &lt;xs:attribute name=&quot;path&quot; type=&quot;xs:string&quot; 
use=&quot;required&quot;/&gt;
+    &lt;/xs:complexType&gt;
+.
+&lt;/xs:schema&gt;
+</pre></p>
+<p><a href="./index.html">::Go back to Oozie Documentation Index::</a>
+</p>
+<p></p>
+</div>
+</div>
+</div>
+
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                      <p >Copyright &copy;                    
2018
+                        <a href="http://www.apache.org";>Apache Software 
Foundation</a>.
+            All rights reserved.      
+                    
+      </p>
+                </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>

Added: 
websites/staging/oozie/trunk/content/docs/5.0.0/DG_HiveActionExtension.html
==============================================================================
--- websites/staging/oozie/trunk/content/docs/5.0.0/DG_HiveActionExtension.html 
(added)
+++ websites/staging/oozie/trunk/content/docs/5.0.0/DG_HiveActionExtension.html 
Mon Apr  9 14:26:49 2018
@@ -0,0 +1,637 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at Apr 9, 2018 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Oozie - </title>
+    <link rel="stylesheet" href="./css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="./css/site.css" />
+    <link rel="stylesheet" href="./css/print.css" media="print" />
+
+      
+    <script type="text/javascript" 
src="./js/apache-maven-fluido-1.4.min.js"></script>
+
+    
+                  </head>
+        <body class="topBarDisabled">
+          
+        
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                    <a href="https://oozie.apache.org/"; 
id="bannerLeft">
+                                                                               
         <img src="https://oozie.apache.org/images/oozie_200x.png";  
alt="Oozie"/>
+                </a>
+                      </div>
+        <div class="pull-right">  </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="../../" title="Apache">
+        Apache</a>
+                    <span class="divider">/</span>
+      </li>
+            <li class="">
+                    <a href="../../" title="Oozie">
+        Oozie</a>
+                    <span class="divider">/</span>
+      </li>
+            <li class="">
+                    <a href="../" title="docs">
+        docs</a>
+                    <span class="divider">/</span>
+      </li>
+            <li class="">
+                    <a href="./" title="5.0.0">
+        5.0.0</a>
+                    <span class="divider">/</span>
+      </li>
+        <li class="active ">Oozie - </li>
+        
+                
+                    
+                  <li id="publishDate" class="pull-right"><span 
class="divider">|</span> Last Published: 2018-04-09</li>
+              <li id="projectVersion" class="pull-right">
+                    Version: 5.0.0
+        </li>
+            
+                            </ul>
+      </div>
+
+            
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+  </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                             <a href="http://maven.apache.org/"; title="Built 
by Maven" class="poweredBy">
+        <img class="builtBy" alt="Built by Maven" 
src="./images/logos/maven-feather.png" />
+      </a>
+                  </div>
+          </div>
+        </div>
+        
+                
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <p></p>
+<p><a href="./index.html">::Go back to Oozie Documentation Index::</a>
+</p>
+<hr />
+<a name="Oozie_Hive_Action_Extension"></a>
+<div class="section"><h2> Oozie Hive Action Extension</h2>
+<p><ul><ul><li><a href="#Hive_Action">Hive Action</a>
+<ul><li><a href="#Hive_Default_and_Site_Configuration_Files">Hive Default and 
Site Configuration Files</a>
+</li>
+<li><a href="#Hive_Action_Logging">Hive Action Logging</a>
+</li>
+</ul>
+</li>
+<li><a href="#Appendix_Hive_XML-Schema">Appendix, Hive XML-Schema</a>
+<ul><li><a href="#AE.A_Appendix_A_Hive_XML-Schema">AE.A Appendix A, Hive 
XML-Schema</a>
+<ul><li><a href="#Hive_Action_Schema_Version_1.0">Hive Action Schema Version 
1.0</a>
+</li>
+<li><a href="#Hive_Action_Schema_Version_0.6">Hive Action Schema Version 
0.6</a>
+</li>
+<li><a href="#Hive_Action_Schema_Version_0.5">Hive Action Schema Version 
0.5</a>
+</li>
+<li><a href="#Hive_Action_Schema_Version_0.4">Hive Action Schema Version 
0.4</a>
+</li>
+<li><a href="#Hive_Action_Schema_Version_0.3">Hive Action Schema Version 
0.3</a>
+</li>
+<li><a href="#Hive_Action_Schema_Version_0.2">Hive Action Schema Version 
0.2</a>
+</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</ul>
+</p>
+<p><a name="HiveAction"></a>
+</p>
+<a name="Hive_Action"></a>
+<div class="section"><h3>Hive Action</h3>
+<p>The <tt>hive</tt>
+ action runs a Hive job.</p>
+<p>The workflow job will wait until the Hive job completes before
+continuing to the next action.</p>
+<p>To run the Hive job, you have to configure the <tt>hive</tt>
+ action with the <tt>resource-manager</tt>
+, <tt>name-node</tt>
+ and Hive <tt>script</tt>
+
+(or Hive <tt>query</tt>
+) elements as well as the necessary parameters and configuration.</p>
+<p>A <tt>hive</tt>
+ action can be configured to create or delete HDFS directories
+before starting the Hive job.</p>
+<p>Hive configuration can be specified with a file, using the <tt>job-xml</tt>
+
+element, and inline, using the <tt>configuration</tt>
+ elements.</p>
+<p>Oozie EL expressions can be used in the inline configuration. Property
+values specified in the <tt>configuration</tt>
+ element override values specified
+in the <tt>job-xml</tt>
+ file.</p>
+<p>Note that YARN <tt>yarn.resourcemanager.address</tt>
+ (=resource-manager=) and HDFS <tt>fs.default.name</tt>
+ (=name-node=) properties
+must not be present in the inline configuration.</p>
+<p>As with Hadoop <tt>map-reduce</tt>
+ jobs, it is possible to add files and
+archives in order to make them available to the Hive job. Refer to the
+[WorkflowFunctionalSpec#FilesArchives][Adding Files and Archives for the Job]
+section for more information about this feature.</p>
+<p>Oozie Hive action supports Hive scripts with parameter variables, their
+syntax is <tt>${VARIABLES}</tt>
+.</p>
+<p><b>Syntax:</b>
+</p>
+<p><pre>
+&lt;workflow-app name=&quot;[WF-DEF-NAME]&quot; 
xmlns=&quot;uri:oozie:workflow:1.0&quot;&gt;
+    ...
+    &lt;action name=&quot;[NODE-NAME]&quot;&gt;
+        &lt;hive xmlns=&quot;uri:oozie:hive-action:1.0&quot;&gt;
+            &lt;resource-manager&gt;[RESOURCE-MANAGER]&lt;/resource-manager&gt;
+            &lt;name-node&gt;[NAME-NODE]&lt;/name-node&gt;
+            &lt;prepare&gt;
+               &lt;delete path=&quot;[PATH]&quot;/&gt;
+               ...
+               &lt;mkdir path=&quot;[PATH]&quot;/&gt;
+               ...
+            &lt;/prepare&gt;
+            &lt;job-xml&gt;[HIVE SETTINGS FILE]&lt;/job-xml&gt;
+            &lt;configuration&gt;
+                &lt;property&gt;
+                    &lt;name&gt;[PROPERTY-NAME]&lt;/name&gt;
+                    &lt;value&gt;[PROPERTY-VALUE]&lt;/value&gt;
+                &lt;/property&gt;
+                ...
+            &lt;/configuration&gt;
+            &lt;script&gt;[HIVE-SCRIPT]&lt;/script&gt;
+            &lt;param&gt;[PARAM-VALUE]&lt;/param&gt;
+                ...
+            &lt;param&gt;[PARAM-VALUE]&lt;/param&gt;
+            &lt;file&gt;[FILE-PATH]&lt;/file&gt;
+            ...
+            &lt;archive&gt;[FILE-PATH]&lt;/archive&gt;
+            ...
+        &lt;/hive&gt;
+        &lt;ok to=&quot;[NODE-NAME]&quot;/&gt;
+        &lt;error to=&quot;[NODE-NAME]&quot;/&gt;
+    &lt;/action&gt;
+    ...
+&lt;/workflow-app&gt;
+</pre></p>
+<p>The <tt>prepare</tt>
+ element, if present, indicates a list of paths to delete
+or create before starting the job. Specified paths must start with <tt><a 
href="./hdfs://HOST:PORT.html">hdfs://HOST:PORT</a>
+</tt>
+.</p>
+<p>The <tt>job-xml</tt>
+ element, if present, specifies a file containing configuration
+for the Hive job. As of schema 0.3, multiple <tt>job-xml</tt>
+ elements are allowed in order to 
+specify multiple <tt>job.xml</tt>
+ files.</p>
+<p>The <tt>configuration</tt>
+ element, if present, contains configuration
+properties that are passed to the Hive job.</p>
+<p>The <tt>script</tt>
+ element must contain the path of the Hive script to
+execute. The Hive script can be templatized with variables of the form
+=${VARIABLE}=. The values of these variables can then be specified
+using the <tt>params</tt>
+ element.</p>
+<p>The <tt>query</tt>
+ element available from uri:oozie:hive-action:0.6, can be used instead of the
+=script= element. It allows for embedding queries within the 
<tt>worklfow.xml</tt>
+ directly.
+Similar to the <tt>script</tt>
+ element, it also allows for the templatization of variables in the
+form <tt>${VARIABLE}</tt>
+.</p>
+<p>The <tt>params</tt>
+ element, if present, contains parameters to be passed to
+the Hive script.</p>
+<p>All the above elements can be parameterized (templatized) using EL
+expressions.</p>
+<p><b>Example:</b>
+</p>
+<p><pre>
+&lt;workflow-app name=&quot;sample-wf&quot; 
xmlns=&quot;uri:oozie:workflow:1.0&quot;&gt;
+    ...
+    &lt;action name=&quot;myfirsthivejob&quot;&gt;
+        &lt;hive xmlns=&quot;uri:oozie:hive-action:1.0&quot;&gt;
+            &lt;resource-manager&gt;foo:8032&lt;/resource-manager&gt;
+            &lt;name-node&gt;bar:8020&lt;/name-node&gt;
+            &lt;prepare&gt;
+                &lt;delete path=&quot;${jobOutput}&quot;/&gt;
+            &lt;/prepare&gt;
+            &lt;configuration&gt;
+                &lt;property&gt;
+                    &lt;name&gt;mapred.compress.map.output&lt;/name&gt;
+                    &lt;value&gt;true&lt;/value&gt;
+                &lt;/property&gt;
+            &lt;/configuration&gt;
+            &lt;script&gt;myscript.q&lt;/script&gt;
+            &lt;param&gt;InputDir=/home/tucu/input-data&lt;/param&gt;
+            &lt;param&gt;OutputDir=${jobOutput}&lt;/param&gt;
+        &lt;/hive&gt;
+        &lt;ok to=&quot;myotherjob&quot;/&gt;
+        &lt;error to=&quot;errorcleanup&quot;/&gt;
+    &lt;/action&gt;
+    ...
+&lt;/workflow-app&gt;
+</pre></p>
+<a name="Hive_Default_and_Site_Configuration_Files"></a>
+<div class="section"><h4>Hive Default and Site Configuration Files</h4>
+<p>Hive (as of Hive 0.8) ignores a <tt>hive-default.xml</tt>
+ file.  As a result, Oozie (as of Oozie 3.4) ignores the 
<tt>oozie.hive.defaults</tt>
+
+property that was previously required by earlier versions of Oozie for the 
Hive action.</p>
+<a name="Hive_Action_Logging"></a>
+</div>
+<div class="section"><h4>Hive Action Logging</h4>
+<p>Hive action logs are redirected to the Oozie Launcher map-reduce job task 
STDOUT/STDERR that runs Hive.</p>
+<p>From Oozie web-console, from the Hive action pop up using the 'Console URL' 
link, it is possible
+to navigate to the Oozie Launcher map-reduce job task logs via the Hadoop 
job-tracker web-console.</p>
+<p>The logging level of the Hive action can set in the Hive action 
configuration using the
+property <tt>oozie.hive.log.level</tt>
+. The default value is <tt>INFO</tt>
+.</p>
+<a name="Appendix_Hive_XML-Schema"></a>
+</div>
+</div>
+<div class="section"><h3>Appendix, Hive XML-Schema</h3>
+<a name="AE.A_Appendix_A_Hive_XML-Schema"></a>
+<div class="section"><h4>AE.A Appendix A, Hive XML-Schema</h4>
+<a name="Hive_Action_Schema_Version_1.0"></a>
+<div class="section"><h5>Hive Action Schema Version 1.0</h5>
+<p><pre>
+&lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;
+           xmlns:hive=&quot;uri:oozie:hive-action:1.0&quot;
+           elementFormDefault=&quot;qualified&quot;
+           targetNamespace=&quot;uri:oozie:hive-action:1.0&quot;&gt;
+.
+    &lt;xs:include schemaLocation=&quot;oozie-common-1.0.xsd&quot;/&gt;
+.
+    &lt;xs:element name=&quot;hive&quot; type=&quot;hive:ACTION&quot;/&gt;
+.
+    &lt;xs:complexType name=&quot;ACTION&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:choice&gt;
+                &lt;xs:element name=&quot;job-tracker&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+                &lt;xs:element name=&quot;resource-manager&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;/xs:choice&gt;
+            &lt;xs:element name=&quot;name-node&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;prepare&quot; 
type=&quot;hive:PREPARE&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;launcher&quot; 
type=&quot;hive:LAUNCHER&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;job-xml&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;configuration&quot; 
type=&quot;hive:CONFIGURATION&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:choice minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;&gt;
+                &lt;xs:element name=&quot;script&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+                &lt;xs:element name=&quot;query&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;/xs:choice&gt;
+            &lt;xs:element name=&quot;param&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;argument&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;file&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;archive&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+&lt;/xs:schema&gt;
+</pre></p>
+<a name="Hive_Action_Schema_Version_0.6"></a>
+</div>
+<div class="section"><h5>Hive Action Schema Version 0.6</h5>
+<p><pre>
+&lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;
+           xmlns:hive=&quot;uri:oozie:hive-action:0.6&quot; 
elementFormDefault=&quot;qualified&quot;
+           targetNamespace=&quot;uri:oozie:hive-action:0.6&quot;&gt;
+.
+    &lt;xs:element name=&quot;hive&quot; type=&quot;hive:ACTION&quot;/&gt;
+.
+    &lt;xs:complexType name=&quot;ACTION&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;job-tracker&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;name-node&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;prepare&quot; 
type=&quot;hive:PREPARE&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;job-xml&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;configuration&quot; 
type=&quot;hive:CONFIGURATION&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:choice minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;&gt;
+                &lt;xs:element name=&quot;script&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+                &lt;xs:element name=&quot;query&quot;  
type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;/xs:choice&gt;
+            &lt;xs:element name=&quot;param&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;argument&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;file&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;archive&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;CONFIGURATION&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;property&quot; minOccurs=&quot;1&quot; 
maxOccurs=&quot;unbounded&quot;&gt;
+                &lt;xs:complexType&gt;
+                    &lt;xs:sequence&gt;
+                        &lt;xs:element name=&quot;name&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                        &lt;xs:element name=&quot;value&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                        &lt;xs:element name=&quot;description&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                    &lt;/xs:sequence&gt;
+                &lt;/xs:complexType&gt;
+            &lt;/xs:element&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;PREPARE&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;delete&quot; 
type=&quot;hive:DELETE&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;mkdir&quot; type=&quot;hive:MKDIR&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;DELETE&quot;&gt;
+        &lt;xs:attribute name=&quot;path&quot; type=&quot;xs:string&quot; 
use=&quot;required&quot;/&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;MKDIR&quot;&gt;
+        &lt;xs:attribute name=&quot;path&quot; type=&quot;xs:string&quot; 
use=&quot;required&quot;/&gt;
+    &lt;/xs:complexType&gt;
+.
+&lt;/xs:schema&gt;
+</pre></p>
+<a name="Hive_Action_Schema_Version_0.5"></a>
+</div>
+<div class="section"><h5>Hive Action Schema Version 0.5</h5>
+<p><pre>
+&lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;
+           xmlns:hive=&quot;uri:oozie:hive-action:0.5&quot; 
elementFormDefault=&quot;qualified&quot;
+           targetNamespace=&quot;uri:oozie:hive-action:0.5&quot;&gt;
+.
+    &lt;xs:element name=&quot;hive&quot; type=&quot;hive:ACTION&quot;/&gt;
+.
+    &lt;xs:complexType name=&quot;ACTION&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;job-tracker&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;name-node&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;prepare&quot; 
type=&quot;hive:PREPARE&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;job-xml&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;configuration&quot; 
type=&quot;hive:CONFIGURATION&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;script&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;param&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;argument&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;file&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;archive&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;CONFIGURATION&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;property&quot; minOccurs=&quot;1&quot; 
maxOccurs=&quot;unbounded&quot;&gt;
+                &lt;xs:complexType&gt;
+                    &lt;xs:sequence&gt;
+                        &lt;xs:element name=&quot;name&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                        &lt;xs:element name=&quot;value&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                        &lt;xs:element name=&quot;description&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                    &lt;/xs:sequence&gt;
+                &lt;/xs:complexType&gt;
+            &lt;/xs:element&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;PREPARE&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;delete&quot; 
type=&quot;hive:DELETE&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;mkdir&quot; type=&quot;hive:MKDIR&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;DELETE&quot;&gt;
+        &lt;xs:attribute name=&quot;path&quot; type=&quot;xs:string&quot; 
use=&quot;required&quot;/&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;MKDIR&quot;&gt;
+        &lt;xs:attribute name=&quot;path&quot; type=&quot;xs:string&quot; 
use=&quot;required&quot;/&gt;
+    &lt;/xs:complexType&gt;
+.
+&lt;/xs:schema&gt;
+</pre></p>
+<a name="Hive_Action_Schema_Version_0.4"></a>
+</div>
+<div class="section"><h5>Hive Action Schema Version 0.4</h5>
+<p><pre>
+&lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;
+           xmlns:hive=&quot;uri:oozie:hive-action:0.4&quot; 
elementFormDefault=&quot;qualified&quot;
+           targetNamespace=&quot;uri:oozie:hive-action:0.4&quot;&gt;
+.
+    &lt;xs:element name=&quot;hive&quot; type=&quot;hive:ACTION&quot;/&gt;
+.
+    &lt;xs:complexType name=&quot;ACTION&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;job-tracker&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;name-node&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;prepare&quot; 
type=&quot;hive:PREPARE&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;job-xml&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;configuration&quot; 
type=&quot;hive:CONFIGURATION&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;script&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;param&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;file&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;archive&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;CONFIGURATION&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;property&quot; minOccurs=&quot;1&quot; 
maxOccurs=&quot;unbounded&quot;&gt;
+                &lt;xs:complexType&gt;
+                    &lt;xs:sequence&gt;
+                        &lt;xs:element name=&quot;name&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                        &lt;xs:element name=&quot;value&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                        &lt;xs:element name=&quot;description&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                    &lt;/xs:sequence&gt;
+                &lt;/xs:complexType&gt;
+            &lt;/xs:element&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;PREPARE&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;delete&quot; 
type=&quot;hive:DELETE&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;mkdir&quot; type=&quot;hive:MKDIR&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;DELETE&quot;&gt;
+        &lt;xs:attribute name=&quot;path&quot; type=&quot;xs:string&quot; 
use=&quot;required&quot;/&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;MKDIR&quot;&gt;
+        &lt;xs:attribute name=&quot;path&quot; type=&quot;xs:string&quot; 
use=&quot;required&quot;/&gt;
+    &lt;/xs:complexType&gt;
+.
+&lt;/xs:schema&gt;
+</pre></p>
+<a name="Hive_Action_Schema_Version_0.3"></a>
+</div>
+<div class="section"><h5>Hive Action Schema Version 0.3</h5>
+<p><pre>
+&lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;
+           xmlns:hive=&quot;uri:oozie:hive-action:0.3&quot; 
elementFormDefault=&quot;qualified&quot;
+           targetNamespace=&quot;uri:oozie:hive-action:0.3&quot;&gt;
+.
+    &lt;xs:element name=&quot;hive&quot; type=&quot;hive:ACTION&quot;/&gt;
+.
+    &lt;xs:complexType name=&quot;ACTION&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;job-tracker&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;name-node&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;prepare&quot; 
type=&quot;hive:PREPARE&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;job-xml&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;configuration&quot; 
type=&quot;hive:CONFIGURATION&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;script&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;param&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;file&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;archive&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;CONFIGURATION&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;property&quot; minOccurs=&quot;1&quot; 
maxOccurs=&quot;unbounded&quot;&gt;
+                &lt;xs:complexType&gt;
+                    &lt;xs:sequence&gt;
+                        &lt;xs:element name=&quot;name&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                        &lt;xs:element name=&quot;value&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                        &lt;xs:element name=&quot;description&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                    &lt;/xs:sequence&gt;
+                &lt;/xs:complexType&gt;
+            &lt;/xs:element&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;PREPARE&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;delete&quot; 
type=&quot;hive:DELETE&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;mkdir&quot; type=&quot;hive:MKDIR&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;DELETE&quot;&gt;
+        &lt;xs:attribute name=&quot;path&quot; type=&quot;xs:string&quot; 
use=&quot;required&quot;/&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;MKDIR&quot;&gt;
+        &lt;xs:attribute name=&quot;path&quot; type=&quot;xs:string&quot; 
use=&quot;required&quot;/&gt;
+    &lt;/xs:complexType&gt;
+.
+&lt;/xs:schema&gt;
+</pre></p>
+<a name="Hive_Action_Schema_Version_0.2"></a>
+</div>
+<div class="section"><h5>Hive Action Schema Version 0.2</h5>
+<p><pre>
+&lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;
+           xmlns:hive=&quot;uri:oozie:hive-action:0.2&quot; 
elementFormDefault=&quot;qualified&quot;
+           targetNamespace=&quot;uri:oozie:hive-action:0.2&quot;&gt;
+.
+    &lt;xs:element name=&quot;hive&quot; type=&quot;hive:ACTION&quot;/&gt;
+.
+    &lt;xs:complexType name=&quot;ACTION&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;job-tracker&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;name-node&quot; 
type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;prepare&quot; 
type=&quot;hive:PREPARE&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;job-xml&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;configuration&quot; 
type=&quot;hive:CONFIGURATION&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;script&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
+            &lt;xs:element name=&quot;param&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;file&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;archive&quot; type=&quot;xs:string&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;CONFIGURATION&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;property&quot; minOccurs=&quot;1&quot; 
maxOccurs=&quot;unbounded&quot;&gt;
+                &lt;xs:complexType&gt;
+                    &lt;xs:sequence&gt;
+                        &lt;xs:element name=&quot;name&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                        &lt;xs:element name=&quot;value&quot; 
minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                        &lt;xs:element name=&quot;description&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot; type=&quot;xs:string&quot;/&gt;
+                    &lt;/xs:sequence&gt;
+                &lt;/xs:complexType&gt;
+            &lt;/xs:element&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;PREPARE&quot;&gt;
+        &lt;xs:sequence&gt;
+            &lt;xs:element name=&quot;delete&quot; 
type=&quot;hive:DELETE&quot; minOccurs=&quot;0&quot; 
maxOccurs=&quot;unbounded&quot;/&gt;
+            &lt;xs:element name=&quot;mkdir&quot; type=&quot;hive:MKDIR&quot; 
minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
+        &lt;/xs:sequence&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;DELETE&quot;&gt;
+        &lt;xs:attribute name=&quot;path&quot; type=&quot;xs:string&quot; 
use=&quot;required&quot;/&gt;
+    &lt;/xs:complexType&gt;
+.
+    &lt;xs:complexType name=&quot;MKDIR&quot;&gt;
+        &lt;xs:attribute name=&quot;path&quot; type=&quot;xs:string&quot; 
use=&quot;required&quot;/&gt;
+    &lt;/xs:complexType&gt;
+.
+&lt;/xs:schema&gt;
+</pre></p>
+<p><a href="./index.html">::Go back to Oozie Documentation Index::</a>
+</p>
+<p></p>
+</div>
+</div>
+</div>
+
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                      <p >Copyright &copy;                    
2018
+                        <a href="http://www.apache.org";>Apache Software 
Foundation</a>.
+            All rights reserved.      
+                    
+      </p>
+                </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>

Added: websites/staging/oozie/trunk/content/docs/5.0.0/DG_JMSNotifications.html
==============================================================================
--- websites/staging/oozie/trunk/content/docs/5.0.0/DG_JMSNotifications.html 
(added)
+++ websites/staging/oozie/trunk/content/docs/5.0.0/DG_JMSNotifications.html 
Mon Apr  9 14:26:49 2018
@@ -0,0 +1,345 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at Apr 9, 2018 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Oozie - </title>
+    <link rel="stylesheet" href="./css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="./css/site.css" />
+    <link rel="stylesheet" href="./css/print.css" media="print" />
+
+      
+    <script type="text/javascript" 
src="./js/apache-maven-fluido-1.4.min.js"></script>
+
+    
+                  </head>
+        <body class="topBarDisabled">
+          
+        
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                    <a href="https://oozie.apache.org/"; 
id="bannerLeft">
+                                                                               
         <img src="https://oozie.apache.org/images/oozie_200x.png";  
alt="Oozie"/>
+                </a>
+                      </div>
+        <div class="pull-right">  </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="../../" title="Apache">
+        Apache</a>
+                    <span class="divider">/</span>
+      </li>
+            <li class="">
+                    <a href="../../" title="Oozie">
+        Oozie</a>
+                    <span class="divider">/</span>
+      </li>
+            <li class="">
+                    <a href="../" title="docs">
+        docs</a>
+                    <span class="divider">/</span>
+      </li>
+            <li class="">
+                    <a href="./" title="5.0.0">
+        5.0.0</a>
+                    <span class="divider">/</span>
+      </li>
+        <li class="active ">Oozie - </li>
+        
+                
+                    
+                  <li id="publishDate" class="pull-right"><span 
class="divider">|</span> Last Published: 2018-04-09</li>
+              <li id="projectVersion" class="pull-right">
+                    Version: 5.0.0
+        </li>
+            
+                            </ul>
+      </div>
+
+            
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+  </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                             <a href="http://maven.apache.org/"; title="Built 
by Maven" class="poweredBy">
+        <img class="builtBy" alt="Built by Maven" 
src="./images/logos/maven-feather.png" />
+      </a>
+                  </div>
+          </div>
+        </div>
+        
+                
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <p></p>
+<p><a href="./index.html">::Go back to Oozie Documentation Index::</a>
+</p>
+<a name="JMS_Notifications"></a>
+<div class="section"><h2> JMS Notifications</h2>
+<p><ul><ul><li><a href="#Overview">Overview</a>
+</li>
+<li><a href="#Oozie_Server_Configuration">Oozie Server Configuration</a>
+</li>
+<li><a href="#Consuming_Notifications">Consuming Notifications</a>
+<ul><li><a href="#Notification_types">Notification types</a>
+</li>
+<li><a href="#JMS_Topic">JMS Topic</a>
+</li>
+<li><a href="#JMS_Message_Format">JMS Message Format</a>
+</li>
+<li><a href="#JMS_Client">JMS Client</a>
+<ul><li><a href="#Example">Example</a>
+</li>
+<li><a href="#Applying_Selectors">Applying Selectors</a>
+</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</ul>
+</p>
+<a name="Overview"></a>
+<div class="section"><h3>Overview</h3>
+<p>Since Oozie 4.0, Oozie supports publishing notifications to a JMS Provider 
for job status changes and SLA met and miss
+events. This provides an alternative to polling Oozie for Job or SLA related 
information and getting events as they
+happen without any delay. Clients can be written to consume these 
notifications and integrate with different monitoring
+and alerting systems.</p>
+<a name="Oozie_Server_Configuration"></a>
+</div>
+<div class="section"><h3>Oozie Server Configuration</h3>
+<p>Refer to <a 
href="./AG_Install.html#Notifications_Configuration">Notifications 
Configuration</a>
+ section of <a href="./AG_Install.html">Oozie Install</a>
+
+documentation for the Oozie server side configuration required to support 
publishing notifications to a JMS Provider.
+The JNDI properties for the JMS provider, the topics to publish to and the 
notification types to publish (Job and/or SLA)
+need to be configured.</p>
+<a name="Consuming_Notifications"></a>
+</div>
+<div class="section"><h3>Consuming Notifications</h3>
+<a name="Notification_types"></a>
+<div class="section"><h4>Notification types</h4>
+<p>Job and SLA notifications are published to the configured JMS Provider on 
the configured topics.</p>
+<p>Job status change notifications include job start, success, failure, 
suspended, etc. Currently only workflow job and
+coordinator action status change notifications are published.</p>
+<p>SLA notifications include START_MET, END_MET, DURATION_MET, START_MISS, 
END_MISS, DURATION_MISS events and are published
+for a workflow job, workflow action or coordinator action for which SLA 
information is configured in the job xml. Refer
+to <a href="./DG_SLAMonitoring.html#Configuring_SLA_in_Applications">SLA 
Configuration</a>
+ for information on configuring SLA for a workflow or
+coordinator.</p>
+<a name="JMS_Topic"></a>
+</div>
+<div class="section"><h4>JMS Topic</h4>
+<p>Consumers interested in notification on events will require to know the 
JNDI properties to connect to the JMS provider.
+They will also need to know the JMS topic on which notifications for a 
particular job are published.</p>
+<p>Oozie Client provides the following APIs :
+<pre>
+public JMSConnectionInfo getJMSConnectionInfo()
+public String getJMSTopicName(String jobId)
+</pre></p>
+<p>The JMSConnectionInfo exposes 3 methods:</p>
+<p><pre>
+Properties getJNDIProperties();
+String getTopicPattern(AppType appType);
+String getTopicPrefix();
+</pre></p>
+<p>The topic is obtained by concatenating topic prefix and the substituted 
value for topic pattern. The topic pattern
+can be a constant value like workflow or coordinator which the administrator 
has configured or a variable (either ${username}
+or ${jobId}). If ${username}, it has to be substituted with the name of the 
user who has submitted the job; and if ${jobId} it has
+to be substituted with the job Id. Administrators can chose to publish 
messages to topics containing user names to avoid having one
+topic containing all messages and all users having to apply selectors to 
filter the message they are interested in.</p>
+<p>The getJMSTopicName API can be used if the job id is already known and will 
give the exact topic name to which the
+notifications for that job are published.</p>
+<a name="JMS_Message_Format"></a>
+</div>
+<div class="section"><h4>JMS Message Format</h4>
+<p>JMS messages published are <tt>javax.jms.TextMessage</tt>
+. The body contains JSON and the header contains multiple properties
+that can be used as selectors. The header properties are not repeated in the 
body of the message to keep the messages
+small.</p>
+<p><b>Message Header:</b> <br/>
+The different header properties are:<ul><li>msgType - Value can be JOB or 
SLA.</li>
+<li>user - The user who submitted the job.</li>
+<li>appName - Application name of the job.</li>
+<li>appType - Type of the job. One of WORKFLOW_JOB, WORKFLOW_ACTION, 
COORDINATOR_ACTION</li>
+<li>slaStatus - Applicable only to SLA messages. Value is one of NOT_STARTED, 
IN_PROCESS, MET, MISS</li>
+<li>eventStatus - It takes one of the following values- START_MET, START_MISS, 
DURATION_MET, DURATION_MISS, END_MET, END_MISS for SLA notifications. It can 
take any of the following values- WAITING, STARTED, SUCCESS, SUSPEND, FAILURE 
for job notifications. Note that event status is different from the Job status. 
It is included in the header to provide better filtering. Below is the mapping 
of event status to the actual status of workflow job or coordinator action.</li>
+</ul>
+</p>
+<p>WAITING = When a Coordinator Action is waiting for input dependency</p>
+<p>STARTED = When the Workflow Job or Coordinator Action is in RUNNING 
state</p>
+<p>SUCCESS = When the Workflow Job or Coordinator Action is in SUCCEEDED 
state</p>
+<p>SUSPEND = When the Workflow Job or Coordinator Action is in SUSPENDED 
state</p>
+<p>FAILURE = When the Workflow Job or Coordinator Action is in terminal state 
other than SUCCEEDED.</p>
+<p><b>Message Body for Job Notifications:</b> <br/>
+    Sample JSON response for different job and sla events as below.</p>
+<p><pre>
+Workflow Job in RUNNING state:
+{&quot;status&quot;:&quot;RUNNING&quot;,&quot;id&quot;:&quot;0000042-130618221729631-oozie-oozi-W&quot;,&quot;startTime&quot;:1342915200000}
+</pre></p>
+<p><pre>
+Workflow Job in FAILED state:
+{&quot;status&quot;:&quot;FAILED&quot;,&quot;errorCode&quot;:&quot;EL_ERROR&quot;,&quot;errorMessage&quot;:&quot;variable
 [dummyvalue] cannot be resolved&quot;,
+&quot;id&quot;:&quot;0000042-130618221729631-oozie-oozi-W&quot;,&quot;startTime&quot;:1342915200000,&quot;endTime&quot;:1366672183543}
+</pre></p>
+<p><pre>
+Workflow Job in SUCCEEDED state:
+{&quot;status&quot;:&quot;SUCCEEDED&quot;,&quot;id&quot;:&quot;0000039-130618221729631-oozie-oozi-W&quot;,&quot;startTime&quot;:1342915200000,
+&quot;parentId&quot;:&quot;0000025-130618221729631-oozie-oozi-C@1&quot;,&quot;endTime&quot;:1366676224154}
+</pre></p>
+<p><pre>
+Workflow Job in SUSPENDED state:
+{&quot;status&quot;:&quot;SUSPENDED&quot;,&quot;id&quot;:&quot;0000039-130618221729631-oozie-oozi-W&quot;,&quot;startTime&quot;:1342915200000,
+&quot;parentId&quot;:&quot;0000025-130618221729631-oozie-oozi-C@1&quot;}
+</pre></p>
+<p><pre>
+Coordinator Action in WAITING state:
+{&quot;status&quot;:&quot;WAITING&quot;,&quot;nominalTime&quot;:1310342400000,&quot;missingDependency&quot;:&quot;hdfs://gsbl90107.blue.com:8020/user/john/dir1/file1&quot;,
+&quot;id&quot;:&quot;0000025-130618221729631-oozie-oozi-C@1&quot;,&quot;startTime&quot;:1342915200000,&quot;parentId&quot;:&quot;0000025-130618221729631-oozie-oozi-C&quot;}
+</pre></p>
+<p><pre>
+Coordinator Action in RUNNING state:
+{&quot;status&quot;:&quot;RUNNING&quot;,&quot;nominalTime&quot;:1310342400000,&quot;id&quot;:&quot;0000025-130618221729631-oozie-oozi-C@1&quot;,
+&quot;startTime&quot;:1342915200000,&quot;parentId&quot;:&quot;0000025-130618221729631-oozie-oozi-C&quot;}
+</pre></p>
+<p><pre>
+Coordinator Action in SUCCEEDED state:
+{&quot;status&quot;:&quot;SUCCEEDED&quot;,&quot;nominalTime&quot;:1310342400000,&quot;id&quot;:&quot;0000025-130618221729631-oozie-oozi-C@1&quot;,
+&quot;startTime&quot;:1342915200000,&quot;parentId&quot;:&quot;0000025-130618221729631-oozie-oozi-C&quot;,&quot;endTime&quot;:1366677082799}
+</pre></p>
+<p><pre>
+Coordinator Action in FAILED state:
+{&quot;status&quot;:&quot;FAILED&quot;,&quot;errorCode&quot;:&quot;E0101&quot;,&quot;errorMessage&quot;:&quot;dummyError&quot;,&quot;nominalTime&quot;:1310342400000,
+&quot;id&quot;:&quot;0000025-130618221729631-oozie-oozi-C@1&quot;,&quot;startTime&quot;:1342915200000,
+&quot;parentId&quot;:&quot;0000025-130618221729631-oozie-oozi-C&quot;,&quot;endTime&quot;:1366677140818}
+</pre></p>
+<p><b>Message Body for SLA Notifications:</b> <br/></p>
+<p><pre>
+Workflow Job in sla END_MISS state:
+{&quot;id&quot;:&quot;0000000-000000000000001-oozie-wrkf-C@1&quot;,&quot;parentId&quot;:&quot;0000000-000000000000001-oozie-wrkf-C&quot;,
+&quot;expectedStartTime&quot;:1356998400000,&quot;notificationMessage&quot;:&quot;notification
 of start miss&quot;,&quot;actualStartTime&quot;:1357002000000,
+&quot;expectedDuration&quot;:-1, 
&quot;actualDuration&quot;:3600,&quot;expectedEndTime&quot;:1356998400000,&quot;actualEndTime&quot;:1357002000000}
+</pre></p>
+<a name="JMS_Client"></a>
+</div>
+<div class="section"><h4>JMS Client</h4>
+<p>Oozie provides a helper class JMSMessagingUtils for consumers to 
deserialize the JMS messages back to Java objects.
+The below method getEventMessage() expects a sub type of EventMessage.
+There are different implementations of EventMessage - WorkflowJobMessage, 
CoordinatorActionMessage and SLAMessage.</p>
+<p><pre>
+&lt;T extends EventMessage&gt; T JMSMessagingUtils.getEventMessage(Message 
jmsMessage)
+</pre></p>
+<a name="Example"></a>
+<div class="section"><h5>Example</h5>
+<p>Below is a sample code to consume notifications.</p>
+<p>First, create the Oozie client and retrieve the JNDI properties to make a 
connection to the JMS server.
+<pre>
+   OozieClient oc = new OozieClient(&quot;http://localhost:11000/oozie&quot;);
+   JMSConnectionInfo jmsInfo = oc.getJMSConnectionInfo();
+   Properties jndiProperties = jmsInfo.getJNDIProperties();
+   Context jndiContext = new InitialContext(jndiProperties);
+   String connectionFactoryName = (String) 
jndiContext.getEnvironment().get(&quot;connectionFactoryNames&quot;);
+   ConnectionFactory connectionFactory = (ConnectionFactory) 
jndiContext.lookup(connectionFactoryName);
+   Connection connection = connectionFactory.createConnection();
+   Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
+   String topicPrefix = jmsInfo.getTopicPrefix();
+   String topicPattern = jmsInfo.getTopicPattern(AppType.WORKFLOW_JOB);
+   // Following code checks if the topic pattern is
+   //'username', then the topic name is set to the actual user submitting the 
job
+   String topicName = null;
+   if (topicPattern.equals(&quot;${username}&quot;)) {
+       topicName = &quot;john&quot;;
+   // Following code checks if the topic pattern is
+   //'jobId', then the topic name is set to the job id
+   } else if (topicPattern.equals(&quot;${jobId}&quot;)) {
+       topicName = &quot;0000004-140328125200198-oozie-oozi-W&quot;;
+   }
+   Destination topic = session.createTopic(topicPrefix+topicName);
+   MessageConsumer consumer = session.createConsumer(topic);
+   consumer.setMessageListener(this);
+   connection.start();
+</pre></p>
+<p>To start receiving messages, the JMS <a class="externalLink" 
href="http://docs.oracle.com/javaee/6/api/javax/jms/MessageListener.html";>MessageListener</a>
+
+interface needs to be implemented. Also, its onMessage() method  needs to be 
implemented.
+This method will be called whenever a message is available on the JMS bus.</p>
+<p><pre>
+    public void onMessage(Message message) {
+       if 
(message.getStringProperty(JMSHeaderConstants.MESSAGE_TYPE).equals(MessageType.SLA.name())){
+          SLAMessage slaMessage = JMSMessagingUtils.getEventMessage(message);
+          // Further processing
+       }
+       else if 
(message.getStringProperty(JMSHeaderConstants.APP_TYPE).equals(AppType.WORKFLOW_JOB.name())){
+          WorkflowJobMessage wfJobMessage = 
JMSMessagingUtils.getEventMessage(message);
+          // Further processing
+       }
+    }
+</pre></p>
+<a name="Applying_Selectors"></a>
+</div>
+<div class="section"><h5>Applying Selectors</h5>
+<p>Below is a sample ActiveMQ text message header properties section.
+<pre>
+ActiveMQTextMessage
+{properties <tt> {appName = map-reduce-wf, msgType</tt>
+JOB, appType=WORKFLOW_JOB, user=john, msgFormat=json, eventStatus=STARTED} ...}
+</pre></p>
+<p>On the header properties, consumers can apply JMS selectors to filter 
messages from JMS provider.
+They are listed at <a 
href="../docs/client/apidocs/org/apache/oozie/client/event/jms/JMSHeaderConstants.html">JMSHeaderConstants</a>
+</p>
+<p>Sample use of selector to filter events related to Job which have failed 
and has a particular app-name</p>
+<p><pre>
+String selector=JMSHeaderConstants.EVENT_STATUS + &quot;='FAILURE' AND &quot; 
+ JMSHeaderConstants.APP_NAME + &quot;='app-name'&quot;;
+MessageConsumer consumer = session.createConsumer(topic, selector);
+</pre></p>
+</div>
+</div>
+</div>
+
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                      <p >Copyright &copy;                    
2018
+                        <a href="http://www.apache.org";>Apache Software 
Foundation</a>.
+            All rights reserved.      
+                    
+      </p>
+                </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>

Added: websites/staging/oozie/trunk/content/docs/5.0.0/DG_Overview.html
==============================================================================
--- websites/staging/oozie/trunk/content/docs/5.0.0/DG_Overview.html (added)
+++ websites/staging/oozie/trunk/content/docs/5.0.0/DG_Overview.html Mon Apr  9 
14:26:49 2018
@@ -0,0 +1,201 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at Apr 9, 2018 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Oozie - </title>
+    <link rel="stylesheet" href="./css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="./css/site.css" />
+    <link rel="stylesheet" href="./css/print.css" media="print" />
+
+      
+    <script type="text/javascript" 
src="./js/apache-maven-fluido-1.4.min.js"></script>
+
+    
+                  </head>
+        <body class="topBarDisabled">
+          
+        
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                    <a href="https://oozie.apache.org/"; 
id="bannerLeft">
+                                                                               
         <img src="https://oozie.apache.org/images/oozie_200x.png";  
alt="Oozie"/>
+                </a>
+                      </div>
+        <div class="pull-right">  </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="../../" title="Apache">
+        Apache</a>
+                    <span class="divider">/</span>
+      </li>
+            <li class="">
+                    <a href="../../" title="Oozie">
+        Oozie</a>
+                    <span class="divider">/</span>
+      </li>
+            <li class="">
+                    <a href="../" title="docs">
+        docs</a>
+                    <span class="divider">/</span>
+      </li>
+            <li class="">
+                    <a href="./" title="5.0.0">
+        5.0.0</a>
+                    <span class="divider">/</span>
+      </li>
+        <li class="active ">Oozie - </li>
+        
+                
+                    
+                  <li id="publishDate" class="pull-right"><span 
class="divider">|</span> Last Published: 2018-04-09</li>
+              <li id="projectVersion" class="pull-right">
+                    Version: 5.0.0
+        </li>
+            
+                            </ul>
+      </div>
+
+            
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+  </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                             <a href="http://maven.apache.org/"; title="Built 
by Maven" class="poweredBy">
+        <img class="builtBy" alt="Built by Maven" 
src="./images/logos/maven-feather.png" />
+      </a>
+                  </div>
+          </div>
+        </div>
+        
+                
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <p></p>
+<p><a href="./index.html">::Go back to Oozie Documentation Index::</a>
+</p>
+<a name="Oozie_Workflow_Overview"></a>
+<div class="section"><h2>Oozie Workflow Overview</h2>
+<p>Oozie is a server based <i>Workflow Engine</i>
+ specialized in running workflow jobs with actions that run Hadoop Map/Reduce
+and Pig jobs.</p>
+<p>Oozie is a Java Web-Application that runs in a Java servlet-container.</p>
+<p>For the purposes of Oozie, a workflow is a collection of actions (i.e. 
Hadoop Map/Reduce jobs, Pig jobs) arranged in
+a control dependency DAG (Direct Acyclic Graph). &quot;control 
dependency&quot; from one action to another means that the second
+action can't run until the first action has completed.</p>
+<p>Oozie workflows definitions are written in hPDL (a XML Process Definition 
Language similar to
+<a class="externalLink" href="http://www.jboss.org/jbossjbpm/";>JBOSS JBPM</a>
+ jPDL).</p>
+<p>Oozie workflow actions start jobs in remote systems (i.e. Hadoop, Pig). 
Upon action completion, the remote systems
+callback Oozie to notify the action completion, at this point Oozie proceeds 
to the next action in the workflow.</p>
+<p>Oozie workflows contain control flow nodes and action nodes.</p>
+<p>Control flow nodes define the beginning and the end of a workflow ( 
<tt>start</tt>
+, <tt>end</tt>
+ and <tt>fail</tt>
+ nodes) and provide a
+mechanism to control the workflow execution path ( <tt>decision</tt>
+, <tt>fork</tt>
+ and <tt>join</tt>
+ nodes).</p>
+<p>Action nodes are the mechanism by which a workflow triggers the execution 
of a computation/processing task. Oozie
+provides support for different types of actions: Hadoop map-reduce, Hadoop 
file system, Pig, SSH, HTTP, eMail and
+Oozie sub-workflow. Oozie can be extended to support additional type of 
actions.</p>
+<p>Oozie workflows can be parameterized (using variables like 
<tt>${inputDir}</tt>
+ within the workflow definition). When
+submitting a workflow job values for the parameters must be provided. If 
properly parameterized (i.e. using different
+output directories) several identical workflow jobs can concurrently.</p>
+<a name="WordCount_Workflow_Example"></a>
+<div class="section"><h3>WordCount Workflow Example</h3>
+<p><b>Workflow Diagram:</b>
+</p>
+<p><img src="./DG_Overview.png"/></p>
+<p><b>hPDL Workflow Definition:</b>
+</p>
+<p><pre>
+&lt;workflow-app name='wordcount-wf' 
xmlns=&quot;uri:oozie:workflow:0.1&quot;&gt;
+    &lt;start to='wordcount'/&gt;
+    &lt;action name='wordcount'&gt;
+        &lt;map-reduce&gt;
+            &lt;job-tracker&gt;${jobTracker}&lt;/job-tracker&gt;
+            &lt;name-node&gt;${nameNode}&lt;/name-node&gt;
+            &lt;configuration&gt;
+                &lt;property&gt;
+                    &lt;name&gt;mapred.mapper.class&lt;/name&gt;
+                    &lt;value&gt;org.myorg.WordCount.Map&lt;/value&gt;
+                &lt;/property&gt;
+                &lt;property&gt;
+                    &lt;name&gt;mapred.reducer.class&lt;/name&gt;
+                    &lt;value&gt;org.myorg.WordCount.Reduce&lt;/value&gt;
+                &lt;/property&gt;
+                &lt;property&gt;
+                    &lt;name&gt;mapred.input.dir&lt;/name&gt;
+                    &lt;value&gt;${inputDir}&lt;/value&gt;
+                &lt;/property&gt;
+                &lt;property&gt;
+                    &lt;name&gt;mapred.output.dir&lt;/name&gt;
+                    &lt;value&gt;${outputDir}&lt;/value&gt;
+                &lt;/property&gt;
+            &lt;/configuration&gt;
+        &lt;/map-reduce&gt;
+        &lt;ok to='end'/&gt;
+        &lt;error to='end'/&gt;
+    &lt;/action&gt;
+    &lt;kill name='kill'&gt;
+        &lt;message&gt;Something went wrong: 
${wf:errorCode('wordcount')}&lt;/message&gt;
+    &lt;/kill/&gt;
+    &lt;end name='end'/&gt;
+&lt;/workflow-app&gt;
+</pre></p>
+<p><a href="./index.html">::Go back to Oozie Documentation Index::</a>
+</p>
+<p></p>
+</div>
+</div>
+
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                      <p >Copyright &copy;                    
2018
+                        <a href="http://www.apache.org";>Apache Software 
Foundation</a>.
+            All rights reserved.      
+                    
+      </p>
+                </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>

Added: websites/staging/oozie/trunk/content/docs/5.0.0/DG_Overview.png
==============================================================================
Binary file - no diff available.

Propchange: websites/staging/oozie/trunk/content/docs/5.0.0/DG_Overview.png
------------------------------------------------------------------------------
    svn:mime-type = image/png


Reply via email to