PIG-5183: We shall mention NATIVE instead of MAPREDUCE operator in document

git-svn-id: https://svn.apache.org/repos/asf/pig/trunk@1786819 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/CHANGES.txt b/CHANGES.txt
index 3f35216..e24302b 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -91,6 +91,8 @@
  
 BUG FIXES
 
+PIG-5183: We shall mention NATIVE instead of MAPREDUCE operator in document (daijy)
+
 PIG-5182: ant docs target is broken by PIG-5110 (daijy)
 
 PIG-5156: Duplicate jars in CLASSPATH when running test (daijy)
diff --git a/src/docs/src/documentation/content/xdocs/basic.xml b/src/docs/src/documentation/content/xdocs/basic.xml
index 0264089..9892ff5 100644
--- a/src/docs/src/documentation/content/xdocs/basic.xml
+++ b/src/docs/src/documentation/content/xdocs/basic.xml
@@ -7629,16 +7629,16 @@
       
 
 <!-- =================================================================== -->
-<section id="mapreduce">
-   <title>MAPREDUCE</title>
-   <p>Executes native MapReduce jobs inside a Pig script.</p>      
+<section id="native">
+   <title>NATIVE</title>
+   <p>Executes native MapReduce/Tez jobs inside a Pig script.</p>
    
    <section>
    <title>Syntax</title>
       <table>
       <tr> 
             <td>
-               <p>alias1 = MAPREDUCE 'mr.jar' STORE alias2 INTO 
+               <p>alias1 = NATIVE 'native.jar' STORE alias2 INTO
 'inputLocation' USING storeFunc LOAD 'outputLocation' USING loadFunc AS schema [`params, ... `];</p>
             </td>
          </tr> 
@@ -7658,11 +7658,11 @@
      </tr>
      <tr>
             <td>
-               <p>mr.jar</p>
+               <p>native.jar</p>
             </td>
             <td>
-                <p>The MapReduce jar file (enclosed in single quotes).</p>
-               <p>You can specify any MapReduce jar file that can be run through the <code>hadoop jar mymr.jar params</code> command. </p>
+                <p>The jar file containing MapReduce or Tez program (enclosed in single quotes).</p>
+               <p>You can specify any MapReduce/Tez jar file that can be run through the <code>hadoop jar native.jar params</code> command. </p>
                <p>The values for inputLocation and outputLocation can be passed in the params. </p>
             </td>
      </tr>
@@ -7673,7 +7673,7 @@
             </td>
             <td>
                <p>See <a href="basic.html#store">STORE</a></p>
-               <p>Store alias2 into the inputLocation using storeFunc, which is then used by the MapReduce job to read its data.</p>
+               <p>Store alias2 into the inputLocation using storeFunc, which is then used by the MapReduce/Tez job to read its data.</p>
                 
             </td>
      </tr>
@@ -7684,7 +7684,7 @@
             </td>
             <td>
                <p>See <a href="basic.html#load">LOAD</a></p>
-               <p>After running mr.jar's MapReduce job, load back the data from outputLocation into alias1 using loadFunc as schema.</p>
+               <p>After running native.jar's MapReduce/Tez job, load back the data from outputLocation into alias1 using loadFunc as schema.</p>
             </td>
      </tr>
 
@@ -7693,7 +7693,7 @@
                <p>`params, ...`</p>
             </td>
             <td>
-               <p>Extra parameters required for the mapreduce job (enclosed in back tics). </p>
+               <p>Extra parameters required for the mapreduce/tez job (enclosed in back tics). </p>
             </td>
      </tr>
        
@@ -7702,20 +7702,20 @@
 
 <section>
 <title>Usage</title>
-<p>Use the MAPREDUCE operator to run native MapReduce jobs from inside a Pig script.</p>
+<p>Use the NATIVE operator to run native MapReduce/Tez jobs from inside a Pig script.</p>
 
-<p>The input and output locations for the MapReduce program are conveyed to Pig using the STORE/LOAD clauses.  
-Pig, however, does not pass this information (nor require that this information be passed) to the MapReduce program. 
-If you want to pass the input and output locations to the MapReduce program you can use the params clause or you can hardcode the locations in the MapReduce program.</p>
+<p>The input and output locations for the MapReduce/Tez program are conveyed to Pig using the STORE/LOAD clauses.
+Pig, however, does not pass this information (nor require that this information be passed) to the MapReduce/Tez program.
+If you want to pass the input and output locations to the MapReduce/Tez program you can use the params clause or you can hardcode the locations in the MapReduce/Tez program.</p>
 </section>
 
 <section>
 <title>Example</title>
 <p>This example demonstrates how to run the wordcount MapReduce progam from Pig.
-Note that the files specified as input and output locations in the MAPREDUCE statement will NOT be deleted by Pig automatically. You will need to delete them manually. </p>
+Note that the files specified as input and output locations in the NATIVE statement will NOT be deleted by Pig automatically. You will need to delete them manually. </p>
 <source>
 A = LOAD 'WordcountInput.txt';
-B = MAPREDUCE 'wordcount.jar' STORE A INTO 'inputDir' LOAD 'outputDir' 
+B = NATIVE 'wordcount.jar' STORE A INTO 'inputDir' LOAD 'outputDir'
     AS (word:chararray, count: int) `org.myorg.WordCount inputDir outputDir`;
 </source>
 </section>
diff --git a/src/docs/src/documentation/content/xdocs/pig-index.xml b/src/docs/src/documentation/content/xdocs/pig-index.xml
index 8e831e2..ae39756 100644
--- a/src/docs/src/documentation/content/xdocs/pig-index.xml
+++ b/src/docs/src/documentation/content/xdocs/pig-index.xml
@@ -588,8 +588,6 @@
 
 <p><a href="start.html#execution-modes">mapreduce mode</a></p>
 
-<p><a href="basic.html#mapreduce">MAPREDUCE</a> operator</p>
-
 <p>maps (data type)
 <br></br>&nbsp;&nbsp;&nbsp; <a href="basic.html#map-schema">and schemas</a>
 <br></br>&nbsp;&nbsp;&nbsp; <a href="basic.html#schema-multi">schemas for multiple types</a>
@@ -626,6 +624,8 @@
 
 <p>names (for fields, relations). <em>See</em> referencing.</p>
 
+<p><a href="basic.html#native">NATIVE</a> operator</p>
+
 <p><a href="basic.html#nested-block">nested blocks</a> (FOREACH operator) </p>
 
 <p><a href="basic.html#boolops">NOT</a> (Boolean)</p>