Yang, Tong 3f5759eed2 MRS comp-lts 2.0.38.SP20 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2023-01-19 17:08:45 +00:00

15 lines
2.4 KiB
HTML

<a name="mrs_01_0973"></a><a name="mrs_01_0973"></a>
<h1 class="topictitle1">Restricting the Maximum Number of Maps for Hive Tasks</h1>
<div id="body8662426"><div class="section" id="mrs_01_0973__en-us_topic_0000001173789480_section1971814572430"><h4 class="sectiontitle">Scenario</h4><ul id="mrs_01_0973__en-us_topic_0000001173789480_ul8539153623612"><li id="mrs_01_0973__en-us_topic_0000001173789480_li053916367364">This function applies to Hive.</li><li id="mrs_01_0973__en-us_topic_0000001173789480_li125397366362">This function is used to limit the maximum number of maps for Hive tasks on the server to avoid performance deterioration caused by overload of the HiveSever service.</li></ul>
</div>
<div class="section" id="mrs_01_0973__en-us_topic_0000001173789480_section3720957144315"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_0973__en-us_topic_0000001173789480_ol181811550174911"><li id="mrs_01_0973__en-us_topic_0000001173789480_li874802051810"><span>Log in to FusionInsight Manager. For details, see <a href="mrs_01_2124.html">Accessing FusionInsight Manager</a>. Choose <strong id="mrs_01_0973__en-us_topic_0000001173789480_b1673403675617">Cluster</strong> &gt; <strong id="mrs_01_0973__en-us_topic_0000001173789480_b135070553173">Services</strong> &gt; <strong id="mrs_01_0973__en-us_topic_0000001173789480_b1507195518173">Hive</strong> &gt; <strong id="mrs_01_0973__en-us_topic_0000001173789480_b4508555101710">Configurations</strong> &gt; <strong id="mrs_01_0973__en-us_topic_0000001173789480_b550875511176">All Configurations</strong>.</span></li><li id="mrs_01_0973__en-us_topic_0000001173789480_li540112614154"><span>Choose <strong id="mrs_01_0973__en-us_topic_0000001173789480_b1611611221820">MetaStore(Role)</strong> &gt; <strong id="mrs_01_0973__en-us_topic_0000001173789480_b15116122180">Customization</strong>, add a customized parameter to the <strong id="mrs_01_0973__en-us_topic_0000001173789480_b2011742101816">hivemetastore-site.xml</strong> parameter file, set <strong id="mrs_01_0973__en-us_topic_0000001173789480_b1511732111817">Name</strong> to <strong id="mrs_01_0973__en-us_topic_0000001173789480_b81179214184">hive.mapreduce.per.task.max.splits</strong>, and set the parameter to a large value. Restart all Hive instances after the modification.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0581.html">Using Hive</a></div>
</div>
</div>