blob: 9bf0e9586afa0d9e804c8da776fd0f95312aa967 [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>
<link rel="canonical" href="https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html" />
<!-- Generated by javadoc (1.8.0_221) on Thu Feb 27 14:09:40 MSK 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>IgniteHadoopWeightedMapReducePlanner (Ignite 2.8.0)</title>
<meta name="date" content="2020-02-27">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<link rel='shortcut icon' href='https://ignite.apache.org/favicon.ico'/>
<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"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="IgniteHadoopWeightedMapReducePlanner (Ignite 2.8.0)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<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>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopClientProtocolProvider.html" title="class in org.apache.ignite.hadoop.mapreduce"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;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&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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/8/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><a href="../../../../../org/apache/ignite/hadoop/planner/HadoopAbstractMapReducePlanner.html" title="class in org.apache.ignite.hadoop.planner">org.apache.ignite.hadoop.planner.HadoopAbstractMapReducePlanner</a></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><a href="../../../../../org/apache/ignite/hadoop/HadoopMapReducePlanner.html" title="interface in org.apache.ignite.hadoop">HadoopMapReducePlanner</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">IgniteHadoopWeightedMapReducePlanner</span>
extends <a href="../../../../../org/apache/ignite/hadoop/planner/HadoopAbstractMapReducePlanner.html" title="class in org.apache.ignite.hadoop.planner">HadoopAbstractMapReducePlanner</a></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="memberSummary" 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><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#DFLT_LOC_MAPPER_WEIGHT">DFLT_LOC_MAPPER_WEIGHT</a></span></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><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#DFLT_LOC_REDUCER_WEIGHT">DFLT_LOC_REDUCER_WEIGHT</a></span></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><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#DFLT_PREFER_LOCAL_REDUCER_THRESHOLD_WEIGHT">DFLT_PREFER_LOCAL_REDUCER_THRESHOLD_WEIGHT</a></span></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><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#DFLT_RMT_MAPPER_WEIGHT">DFLT_RMT_MAPPER_WEIGHT</a></span></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><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#DFLT_RMT_REDUCER_WEIGHT">DFLT_RMT_REDUCER_WEIGHT</a></span></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.hadoop.planner.HadoopAbstractMapReducePlanner">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.ignite.hadoop.planner.<a href="../../../../../org/apache/ignite/hadoop/planner/HadoopAbstractMapReducePlanner.html" title="class in org.apache.ignite.hadoop.planner">HadoopAbstractMapReducePlanner</a></h3>
<code><a href="../../../../../org/apache/ignite/hadoop/planner/HadoopAbstractMapReducePlanner.html#ignite">ignite</a>, <a href="../../../../../org/apache/ignite/hadoop/planner/HadoopAbstractMapReducePlanner.html#log">log</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" 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><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#IgniteHadoopWeightedMapReducePlanner--">IgniteHadoopWeightedMapReducePlanner</a></span>()</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="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#getLocalMapperWeight--">getLocalMapperWeight</a></span>()</code>
<div class="block">Get local mapper weight.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#getLocalReducerWeight--">getLocalReducerWeight</a></span>()</code>
<div class="block">Get local reducer weight.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#getPreferLocalReducerThresholdWeight--">getPreferLocalReducerThresholdWeight</a></span>()</code>
<div class="block">Get reducer migration threshold weight.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#getRemoteMapperWeight--">getRemoteMapperWeight</a></span>()</code>
<div class="block">Get remote mapper weight.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#getRemoteReducerWeight--">getRemoteReducerWeight</a></span>()</code>
<div class="block">Get remote reducer weight.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/ignite/hadoop/HadoopMapReducePlan.html" title="interface in org.apache.ignite.hadoop">HadoopMapReducePlan</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#preparePlan-org.apache.ignite.hadoop.HadoopJob-java.util.Collection-org.apache.ignite.hadoop.HadoopMapReducePlan-">preparePlan</a></span>(<a href="../../../../../org/apache/ignite/hadoop/HadoopJob.html" title="interface in org.apache.ignite.hadoop">HadoopJob</a>&nbsp;job,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'>&lt;</span><a href="../../../../../org/apache/ignite/cluster/ClusterNode.html" title="interface in org.apache.ignite.cluster">ClusterNode</a><span class='angle_bracket'>&gt;</span>&nbsp;nodes,
@Nullable <a href="../../../../../org/apache/ignite/hadoop/HadoopMapReducePlan.html" title="interface in org.apache.ignite.hadoop">HadoopMapReducePlan</a>&nbsp;oldPlan)</code>
<div class="block">Prepares map-reduce execution plan for the given job and topology.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html" title="class in org.apache.ignite.hadoop.mapreduce">IgniteHadoopWeightedMapReducePlanner</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#setLocalMapperWeight-int-">setLocalMapperWeight</a></span>(int&nbsp;locMapperWeight)</code>
<div class="block">Set local mapper weight.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html" title="class in org.apache.ignite.hadoop.mapreduce">IgniteHadoopWeightedMapReducePlanner</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#setLocalReducerWeight-int-">setLocalReducerWeight</a></span>(int&nbsp;locReducerWeight)</code>
<div class="block">Set local reducer weight.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html" title="class in org.apache.ignite.hadoop.mapreduce">IgniteHadoopWeightedMapReducePlanner</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#setPreferLocalReducerThresholdWeight-int-">setPreferLocalReducerThresholdWeight</a></span>(int&nbsp;reducerMigrationThresholdWeight)</code>
<div class="block">Set reducer migration threshold weight.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html" title="class in org.apache.ignite.hadoop.mapreduce">IgniteHadoopWeightedMapReducePlanner</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#setRemoteMapperWeight-int-">setRemoteMapperWeight</a></span>(int&nbsp;rmtMapperWeight)</code>
<div class="block">Set remote mapper weight.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html" title="class in org.apache.ignite.hadoop.mapreduce">IgniteHadoopWeightedMapReducePlanner</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#setRemoteReducerWeight-int-">setRemoteReducerWeight</a></span>(int&nbsp;rmtReducerWeight)</code>
<div class="block">Set remote reducer weight.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html#toString--">toString</a></span>()</code></td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.ignite.hadoop.planner.HadoopAbstractMapReducePlanner">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.ignite.hadoop.planner.<a href="../../../../../org/apache/ignite/hadoop/planner/HadoopAbstractMapReducePlanner.html" title="class in org.apache.ignite.hadoop.planner">HadoopAbstractMapReducePlanner</a></h3>
<code><a href="../../../../../org/apache/ignite/hadoop/planner/HadoopAbstractMapReducePlanner.html#groupByHost-java.util.Collection-">groupByHost</a>, <a href="../../../../../org/apache/ignite/hadoop/planner/HadoopAbstractMapReducePlanner.html#topology-java.util.Collection-">topology</a></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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" 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="seeLabel">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="seeLabel">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="seeLabel">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="seeLabel">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="seeLabel">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.hadoop.HadoopJob-java.util.Collection-org.apache.ignite.hadoop.HadoopMapReducePlan-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>preparePlan</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/ignite/hadoop/HadoopMapReducePlan.html" title="interface in org.apache.ignite.hadoop">HadoopMapReducePlan</a>&nbsp;preparePlan(<a href="../../../../../org/apache/ignite/hadoop/HadoopJob.html" title="interface in org.apache.ignite.hadoop">HadoopJob</a>&nbsp;job,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><span class='angle_bracket'>&lt;</span><a href="../../../../../org/apache/ignite/cluster/ClusterNode.html" title="interface in org.apache.ignite.cluster">ClusterNode</a><span class='angle_bracket'>&gt;</span>&nbsp;nodes,
@Nullable
@Nullable <a href="../../../../../org/apache/ignite/hadoop/HadoopMapReducePlan.html" title="interface in org.apache.ignite.hadoop">HadoopMapReducePlan</a>&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="paramLabel">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="returnLabel">Returns:</span></dt>
<dd>Map reduce plan.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/ignite/IgniteCheckedException.html" title="class in org.apache.ignite">IgniteCheckedException</a></code> - If an error occurs.</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="returnLabel">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;<a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html" title="class in org.apache.ignite.hadoop.mapreduce">IgniteHadoopWeightedMapReducePlanner</a>&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="paramLabel">Parameters:</span></dt>
<dd><code>locMapperWeight</code> - Local mapper weight.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>this</code> for chaining.</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="returnLabel">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;<a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html" title="class in org.apache.ignite.hadoop.mapreduce">IgniteHadoopWeightedMapReducePlanner</a>&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="paramLabel">Parameters:</span></dt>
<dd><code>rmtMapperWeight</code> - Remote mapper weight.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>this</code> for chaining.</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="returnLabel">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;<a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html" title="class in org.apache.ignite.hadoop.mapreduce">IgniteHadoopWeightedMapReducePlanner</a>&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="paramLabel">Parameters:</span></dt>
<dd><code>locReducerWeight</code> - Local reducer weight.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>this</code> for chaining.</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="returnLabel">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;<a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html" title="class in org.apache.ignite.hadoop.mapreduce">IgniteHadoopWeightedMapReducePlanner</a>&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="paramLabel">Parameters:</span></dt>
<dd><code>rmtReducerWeight</code> - Remote reducer weight.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>this</code> for chaining.</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="returnLabel">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;<a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopWeightedMapReducePlanner.html" title="class in org.apache.ignite.hadoop.mapreduce">IgniteHadoopWeightedMapReducePlanner</a>&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="paramLabel">Parameters:</span></dt>
<dd><code>reducerMigrationThresholdWeight</code> - Reducer migration threshold weight.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>this</code> for chaining.</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/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/8/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/8/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>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<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>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/ignite/hadoop/mapreduce/IgniteHadoopClientProtocolProvider.html" title="class in org.apache.ignite.hadoop.mapreduce"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;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&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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>2020 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> </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 Database and Caching Platform</b> </td> <td>:&nbsp;&nbsp; ver. <strong>2.8.0</strong> </td> </tr> <tr style="padding: 0; margin: 0"> <td> <b>Release Date</b> </td> <td>:&nbsp;&nbsp; February 27 2020 </td> </tr> </tbody> </table> </td> </tr> </table></small></p>
</body>
</html>