blob: bb06fbb1ae4d9f901c5bb30e043d46191f16078c [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<META NAME="ROBOTS" CONTENT="NOINDEX">
<link rel="canonical" href="https://ignite.apache.org/releases/1.7.0/javadoc/org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html" />
<!-- Generated by javadoc (version 1.7.0_80) on Mon Aug 01 20:32:33 MSK 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>IgniteHadoopWeightedMapReducePlanner (Ignite 1.7.0)</title>
<meta name="date" content="2016-08-01">
<link rel="stylesheet" type="text/css" href="../../../../../javadoc.css" title="Style">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61232409-1', 'auto');
ga('send', 'pageview');
</script></head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="IgniteHadoopWeightedMapReducePlanner (Ignite 1.7.0)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/IgniteHadoopWeightedMapReducePlanner.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em>Ignite - In-Memory Data Fabric</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopMapReducePlanner.html" title="class in org.apache.ignite.hadoop.mapreduce"><span class="strong">Prev Class</span></a></li>
<li>Next Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html" target="_top">Frames</a></li>
<li><a href="IgniteHadoopWeightedMapReducePlanner.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.ignite.hadoop.mapreduce</div>
<h2 title="Class IgniteHadoopWeightedMapReducePlanner" class="title">Class IgniteHadoopWeightedMapReducePlanner</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.ignite.internal.processors.hadoop.planner.HadoopAbstractMapReducePlanner</li>
<li>
<ul class="inheritance">
<li>org.apache.ignite.hadoop.mapreduce.IgniteHadoopWeightedMapReducePlanner</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>org.apache.ignite.internal.processors.hadoop.HadoopMapReducePlanner</dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">IgniteHadoopWeightedMapReducePlanner</span>
extends org.apache.ignite.internal.processors.hadoop.planner.HadoopAbstractMapReducePlanner</pre>
<div class="block">Map-reduce planner which assigns mappers and reducers based on their "weights". Weight describes how much resources
are required to execute particular map or reduce task.
<p>
Plan creation consists of two steps: assigning mappers and assigning reducers.
<p>
Mappers are assigned based on input split data location. For each input split we search for nodes where
its data is stored. Planner tries to assign mappers to their affinity nodes first. This process is governed by two
properties:
<ul>
<li><b><code>localMapperWeight</code></b> - weight of a map task when it is executed on an affinity node;</li>
<li><b><code>remoteMapperWeight</code></b> - weight of a map task when it is executed on a non-affinity node.</li>
</ul>
Planning algorithm assign mappers so that total resulting weight on all nodes is minimum possible.
<p>
Reducers are assigned differently. First we try to distribute reducers across nodes with mappers. This approach
could minimize expensive data transfer over network. Reducer assigned to a node with mapper is considered
<b><code>local</code></b>. Otherwise it is considered <b><code>remote</code></b>. This process continue until certain weight
threshold is reached what means that current node is already too busy and it should not have higher priority over
other nodes any more. Threshold can be configured using <b><code>preferLocalReducerThresholdWeight</code></b> property.
<p>
When local reducer threshold is reached on all nodes, we distribute remaining reducers based on their local and
remote weights in the same way as it is done for mappers. This process is governed by two
properties:
<ul>
<li><b><code>localReducerWeight</code></b> - weight of a reduce task when it is executed on a node with mappers;</li>
<li><b><code>remoteReducerWeight</code></b> - weight of a map task when it is executed on a node without mappers.</li>
</ul></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#DFLT_LOC_MAPPER_WEIGHT">DFLT_LOC_MAPPER_WEIGHT</a></strong></code>
<div class="block">Default local mapper weight.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#DFLT_LOC_REDUCER_WEIGHT">DFLT_LOC_REDUCER_WEIGHT</a></strong></code>
<div class="block">Default local reducer weight.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#DFLT_PREFER_LOCAL_REDUCER_THRESHOLD_WEIGHT">DFLT_PREFER_LOCAL_REDUCER_THRESHOLD_WEIGHT</a></strong></code>
<div class="block">Default reducer migration threshold weight.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#DFLT_RMT_MAPPER_WEIGHT">DFLT_RMT_MAPPER_WEIGHT</a></strong></code>
<div class="block">Default remote mapper weight.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#DFLT_RMT_REDUCER_WEIGHT">DFLT_RMT_REDUCER_WEIGHT</a></strong></code>
<div class="block">Default remote reducer weight.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.ignite.internal.processors.hadoop.planner.HadoopAbstractMapReducePlanner">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.ignite.internal.processors.hadoop.planner.HadoopAbstractMapReducePlanner</h3>
<code>ignite, log</code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#IgniteHadoopWeightedMapReducePlanner()">IgniteHadoopWeightedMapReducePlanner</a></strong>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#getLocalMapperWeight()">getLocalMapperWeight</a></strong>()</code>
<div class="block">Get local mapper weight.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#getLocalReducerWeight()">getLocalReducerWeight</a></strong>()</code>
<div class="block">Get local reducer weight.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#getPreferLocalReducerThresholdWeight()">getPreferLocalReducerThresholdWeight</a></strong>()</code>
<div class="block">Get reducer migration threshold weight.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#getRemoteMapperWeight()">getRemoteMapperWeight</a></strong>()</code>
<div class="block">Get remote mapper weight.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#getRemoteReducerWeight()">getRemoteReducerWeight</a></strong>()</code>
<div class="block">Get remote reducer weight.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>org.apache.ignite.internal.processors.hadoop.HadoopMapReducePlan</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#preparePlan(org.apache.ignite.internal.processors.hadoop.HadoopJob,%20java.util.Collection,%20org.apache.ignite.internal.processors.hadoop.HadoopMapReducePlan)">preparePlan</a></strong>(org.apache.ignite.internal.processors.hadoop.HadoopJob&nbsp;job,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../../../org/apache/ignite/cluster/ClusterNode.html" title="interface in org.apache.ignite.cluster">ClusterNode</a>&gt;&nbsp;nodes,
org.apache.ignite.internal.processors.hadoop.HadoopMapReducePlan&nbsp;oldPlan)</code>
<div class="block">Prepares map-reduce execution plan for the given job and topology.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#setLocalMapperWeight(int)">setLocalMapperWeight</a></strong>(int&nbsp;locMapperWeight)</code>
<div class="block">Set local mapper weight.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#setLocalReducerWeight(int)">setLocalReducerWeight</a></strong>(int&nbsp;locReducerWeight)</code>
<div class="block">Set local reducer weight.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#setPreferLocalReducerThresholdWeight(int)">setPreferLocalReducerThresholdWeight</a></strong>(int&nbsp;reducerMigrationThresholdWeight)</code>
<div class="block">Set reducer migration threshold weight.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#setRemoteMapperWeight(int)">setRemoteMapperWeight</a></strong>(int&nbsp;rmtMapperWeight)</code>
<div class="block">Set remote mapper weight.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#setRemoteReducerWeight(int)">setRemoteReducerWeight</a></strong>(int&nbsp;rmtReducerWeight)</code>
<div class="block">Set remote reducer weight.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#toString()">toString</a></strong>()</code></td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.ignite.internal.processors.hadoop.planner.HadoopAbstractMapReducePlanner">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.ignite.internal.processors.hadoop.planner.HadoopAbstractMapReducePlanner</h3>
<code>groupByHost, topology</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="DFLT_LOC_MAPPER_WEIGHT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DFLT_LOC_MAPPER_WEIGHT</h4>
<pre>public static final&nbsp;int DFLT_LOC_MAPPER_WEIGHT</pre>
<div class="block">Default local mapper weight.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.ignite.hadoop.mapreduce.IgniteHadoopWeightedMapReducePlanner.DFLT_LOC_MAPPER_WEIGHT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DFLT_RMT_MAPPER_WEIGHT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DFLT_RMT_MAPPER_WEIGHT</h4>
<pre>public static final&nbsp;int DFLT_RMT_MAPPER_WEIGHT</pre>
<div class="block">Default remote mapper weight.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.ignite.hadoop.mapreduce.IgniteHadoopWeightedMapReducePlanner.DFLT_RMT_MAPPER_WEIGHT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DFLT_LOC_REDUCER_WEIGHT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DFLT_LOC_REDUCER_WEIGHT</h4>
<pre>public static final&nbsp;int DFLT_LOC_REDUCER_WEIGHT</pre>
<div class="block">Default local reducer weight.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.ignite.hadoop.mapreduce.IgniteHadoopWeightedMapReducePlanner.DFLT_LOC_REDUCER_WEIGHT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DFLT_RMT_REDUCER_WEIGHT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DFLT_RMT_REDUCER_WEIGHT</h4>
<pre>public static final&nbsp;int DFLT_RMT_REDUCER_WEIGHT</pre>
<div class="block">Default remote reducer weight.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.ignite.hadoop.mapreduce.IgniteHadoopWeightedMapReducePlanner.DFLT_RMT_REDUCER_WEIGHT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DFLT_PREFER_LOCAL_REDUCER_THRESHOLD_WEIGHT">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DFLT_PREFER_LOCAL_REDUCER_THRESHOLD_WEIGHT</h4>
<pre>public static final&nbsp;int DFLT_PREFER_LOCAL_REDUCER_THRESHOLD_WEIGHT</pre>
<div class="block">Default reducer migration threshold weight.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.ignite.hadoop.mapreduce.IgniteHadoopWeightedMapReducePlanner.DFLT_PREFER_LOCAL_REDUCER_THRESHOLD_WEIGHT">Constant Field Values</a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="IgniteHadoopWeightedMapReducePlanner()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>IgniteHadoopWeightedMapReducePlanner</h4>
<pre>public&nbsp;IgniteHadoopWeightedMapReducePlanner()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="preparePlan(org.apache.ignite.internal.processors.hadoop.HadoopJob, java.util.Collection, org.apache.ignite.internal.processors.hadoop.HadoopMapReducePlan)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>preparePlan</h4>
<pre>public&nbsp;org.apache.ignite.internal.processors.hadoop.HadoopMapReducePlan&nbsp;preparePlan(org.apache.ignite.internal.processors.hadoop.HadoopJob&nbsp;job,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../../../org/apache/ignite/cluster/ClusterNode.html" title="interface in org.apache.ignite.cluster">ClusterNode</a>&gt;&nbsp;nodes,
@Nullable
org.apache.ignite.internal.processors.hadoop.HadoopMapReducePlan&nbsp;oldPlan)
throws <a href="../../../../../org/apache/ignite/IgniteCheckedException.html" title="class in org.apache.ignite">IgniteCheckedException</a></pre>
<div class="block">Prepares map-reduce execution plan for the given job and topology.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>job</code> - Job.</dd><dd><code>nodes</code> - Topology.</dd><dd><code>oldPlan</code> - Old plan in case of partial failure.</dd>
<dt><span class="strong">Returns:</span></dt><dd>Map reduce plan.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/ignite/IgniteCheckedException.html" title="class in org.apache.ignite">IgniteCheckedException</a></code></dd></dl>
</li>
</ul>
<a name="getLocalMapperWeight()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLocalMapperWeight</h4>
<pre>public&nbsp;int&nbsp;getLocalMapperWeight()</pre>
<div class="block">Get local mapper weight. This weight is added to a node when a mapper is assigned and it's input split data is
located on this node (at least partially).
<p>
Defaults to <a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#DFLT_LOC_MAPPER_WEIGHT"><code>DFLT_LOC_MAPPER_WEIGHT</code></a>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Remote mapper weight.</dd></dl>
</li>
</ul>
<a name="setLocalMapperWeight(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLocalMapperWeight</h4>
<pre>public&nbsp;void&nbsp;setLocalMapperWeight(int&nbsp;locMapperWeight)</pre>
<div class="block">Set local mapper weight. See <a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#getLocalMapperWeight()"><code>getLocalMapperWeight()</code></a> for more information.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>locMapperWeight</code> - Local mapper weight.</dd></dl>
</li>
</ul>
<a name="getRemoteMapperWeight()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRemoteMapperWeight</h4>
<pre>public&nbsp;int&nbsp;getRemoteMapperWeight()</pre>
<div class="block">Get remote mapper weight. This weight is added to a node when a mapper is assigned, but it's input
split data is not located on this node.
<p>
Defaults to <a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#DFLT_RMT_MAPPER_WEIGHT"><code>DFLT_RMT_MAPPER_WEIGHT</code></a>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Remote mapper weight.</dd></dl>
</li>
</ul>
<a name="setRemoteMapperWeight(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRemoteMapperWeight</h4>
<pre>public&nbsp;void&nbsp;setRemoteMapperWeight(int&nbsp;rmtMapperWeight)</pre>
<div class="block">Set remote mapper weight. See <a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#getRemoteMapperWeight()"><code>getRemoteMapperWeight()</code></a> for more information.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>rmtMapperWeight</code> - Remote mapper weight.</dd></dl>
</li>
</ul>
<a name="getLocalReducerWeight()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLocalReducerWeight</h4>
<pre>public&nbsp;int&nbsp;getLocalReducerWeight()</pre>
<div class="block">Get local reducer weight. This weight is added to a node when a reducer is assigned and the node have at least
one assigned mapper.
<p>
Defaults to <a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#DFLT_LOC_REDUCER_WEIGHT"><code>DFLT_LOC_REDUCER_WEIGHT</code></a>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Local reducer weight.</dd></dl>
</li>
</ul>
<a name="setLocalReducerWeight(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLocalReducerWeight</h4>
<pre>public&nbsp;void&nbsp;setLocalReducerWeight(int&nbsp;locReducerWeight)</pre>
<div class="block">Set local reducer weight. See <a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#getLocalReducerWeight()"><code>getLocalReducerWeight()</code></a> for more information.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>locReducerWeight</code> - Local reducer weight.</dd></dl>
</li>
</ul>
<a name="getRemoteReducerWeight()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRemoteReducerWeight</h4>
<pre>public&nbsp;int&nbsp;getRemoteReducerWeight()</pre>
<div class="block">Get remote reducer weight. This weight is added to a node when a reducer is assigned, but the node doesn't have
any assigned mappers.
<p>
Defaults to <a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#DFLT_RMT_REDUCER_WEIGHT"><code>DFLT_RMT_REDUCER_WEIGHT</code></a>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Remote reducer weight.</dd></dl>
</li>
</ul>
<a name="setRemoteReducerWeight(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRemoteReducerWeight</h4>
<pre>public&nbsp;void&nbsp;setRemoteReducerWeight(int&nbsp;rmtReducerWeight)</pre>
<div class="block">Set remote reducer weight. See <a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#getRemoteReducerWeight()"><code>getRemoteReducerWeight()</code></a> for more information.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>rmtReducerWeight</code> - Remote reducer weight.</dd></dl>
</li>
</ul>
<a name="getPreferLocalReducerThresholdWeight()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPreferLocalReducerThresholdWeight</h4>
<pre>public&nbsp;int&nbsp;getPreferLocalReducerThresholdWeight()</pre>
<div class="block">Get reducer migration threshold weight. When threshold is reached, a node with mappers is no longer considered
as preferred for further reducer assignments.
<p>
Defaults to <a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#DFLT_PREFER_LOCAL_REDUCER_THRESHOLD_WEIGHT"><code>DFLT_PREFER_LOCAL_REDUCER_THRESHOLD_WEIGHT</code></a>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Reducer migration threshold weight.</dd></dl>
</li>
</ul>
<a name="setPreferLocalReducerThresholdWeight(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPreferLocalReducerThresholdWeight</h4>
<pre>public&nbsp;void&nbsp;setPreferLocalReducerThresholdWeight(int&nbsp;reducerMigrationThresholdWeight)</pre>
<div class="block">Set reducer migration threshold weight. See <a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#getPreferLocalReducerThresholdWeight()"><code>getPreferLocalReducerThresholdWeight()</code></a> for more
information.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>reducerMigrationThresholdWeight</code> - Reducer migration threshold weight.</dd></dl>
</li>
</ul>
<a name="toString()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/IgniteHadoopWeightedMapReducePlanner.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em>Ignite - In-Memory Data Fabric</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopMapReducePlanner.html" title="class in org.apache.ignite.hadoop.mapreduce"><span class="strong">Prev Class</span></a></li>
<li>Next Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html" target="_top">Frames</a></li>
<li><a href="IgniteHadoopWeightedMapReducePlanner.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><table width="100%" border="0" cellspacing=0 cellpadding=0 style="padding: 5px"> <tr> <td> <table style="padding-left: 0; margin: 0"> <tbody style="padding: 0; margin: 0"> <tr style="padding: 0; margin: 0"> <td> <a target=_blank href="https://ignite.apache.org"><nobr>2015 Copyright &#169; Apache Software Foundation</nobr></a> </td> </tr> </tbody> </table> </td> <td width="100%" align="right" valign="center"> <a href="https://twitter.com/ApacheIgnite" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @ApacheIgnite</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> </td> </tr> <tr> <td colspan="2" valign="top" align="left"> <table style="padding-left: 0; margin: 0"> <tbody style="padding: 0; margin: 0"> <tr style="padding: 0; margin: 0"> <td> <b>Ignite Fabric</b> </td> <td>:&nbsp;&nbsp; ver. <strong>1.7.0</strong> </td> </tr> <tr style="padding: 0; margin: 0"> <td> <b>Release Date</b> </td> <td>:&nbsp;&nbsp; August 1 2016 </td> </tr> </tbody> </table> </td> </tr> </table></small></p>
</body>
</html>