You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by an...@apache.org on 2014/05/14 17:47:45 UTC
svn commit: r1594619 - in /pig/trunk: CHANGES.txt
src/docs/src/documentation/content/xdocs/perf.xml
Author: aniket486
Date: Wed May 14 15:47:44 2014
New Revision: 1594619
URL: http://svn.apache.org/r1594619
Log:
PIG-3745: Document auto local mode for pig (aniket486)
Modified:
pig/trunk/CHANGES.txt
pig/trunk/src/docs/src/documentation/content/xdocs/perf.xml
Modified: pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1594619&r1=1594618&r2=1594619&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Wed May 14 15:47:44 2014
@@ -32,6 +32,8 @@ PIG-2207: Support custom counters for ag
IMPROVEMENTS
+PIG-3745: Document auto local mode for pig (aniket486)
+
PIG-3932: Document ROUND_TO builtin UDF (mrflip via cheolsoo)
PIG-3926: ROUND_TO function: rounds double/float to fixed number of decimal places (mrflip via cheolsoo)
Modified: pig/trunk/src/docs/src/documentation/content/xdocs/perf.xml
URL: http://svn.apache.org/viewvc/pig/trunk/src/docs/src/documentation/content/xdocs/perf.xml?rev=1594619&r1=1594618&r2=1594619&view=diff
==============================================================================
--- pig/trunk/src/docs/src/documentation/content/xdocs/perf.xml (original)
+++ pig/trunk/src/docs/src/documentation/content/xdocs/perf.xml Wed May 14 15:47:44 2014
@@ -1075,6 +1075,24 @@ Direct fetch is turned on by default. To
</p>
</section>
+
+<!-- +++++++++++++++++++++++++++++++ -->
+<section id="auto-local-mode">
+<title>Auto Local Mode</title>
+<p>Processing small mapreduce jobs on hadoop cluster could be slow as it has overhead of job startup and job scheduling. For jobs with small input data, pig can convert them to run them as in-process mapreduce with hadoop's local mode. If pig.auto.local.enabled flag is set to true, pig will convert mapreduce jobs with input data less than pig.auto.local.input.maxbytes (100MB by default) to run in local mode, provided the number of reducers required by the job are less than or equal to 1. Note, jobs converted to run in local mode load and store data from HDFS, so any job in the pig workflow(dag) could be converted to run in local mode without affecting its downstream jobs.</p>
+
+<p>You can set the values for these properties in order to configure the behavior:</p>
+
+<ul>
+<li>pig.auto.local.enabled - Turns on/off auto local mode feature (false by default).</li>
+<li>pig.auto.local.input.maxbytes - Controls the max threshold size (in bytes) to convert jobs to run in local mode (100MB by default).</li>
+</ul>
+<p></p>
+<p>
+Sometimes, you may want change job configuration for jobs that are converted to run in local mode (eg- change io.sort.mb for small jobs). To do so, you can use pig.local. prefix to any configuration and configuration will be set on converted jobs. For example, set pig.local.io.sort.mb 100 will change io.sort.mb value to 100 for jobs converted to run in local mode.
+</p>
+
+</section>
</section>
<!-- ==================================================================== -->