Hadoop/yarn/mapreduce memory allocation (configuration) scheme

Source: Internet
Author: User

based on the recommended configuration of Horntonworks, a common memory allocation scheme for various components on Hadoop cluster is given. The right-most column of the scenario is a 8G VM allocation scheme that reserves 1-2g memory to the operating system, assigns 4G to Yarn/mapreduce, and of course includes hive, and the remaining 2-3g is reserved for hbase when it is necessary to use HBase.

Configuration File Configuration Setting Value calculation 8G VM (4G for MR)
Yarn-site.xml Yarn.nodemanager.resource.memory-mb = Containers * Ram-per-container 4096
Yarn-site.xml Yarn.scheduler.minimum-allocation-mb = Ram-per-container 1024
Yarn-site.xml Yarn.scheduler.maximum-allocation-mb = Containers * Ram-per-container 4096
Mapred-site.xml Mapreduce.map.memory.mb = Ram-per-container 1024
Mapred-site.xml Mapreduce.reduce.memory.mb = 2 * Ram-per-container 2048
Mapred-site.xml Mapreduce.map.java.opts = 0.8 * Ram-per-container 819
Mapred-site.xml Mapreduce.reduce.java.opts = 0.8 * 2 * Ram-per-container 1638
Yarn-site.xml (check) Yarn.app.mapreduce.am.resource.mb = 2 * Ram-per-container 2048
Yarn-site.xml (check) Yarn.app.mapreduce.am.command-opts = 0.8 * 2 * Ram-per-container 1638
Tez-site.xml
Tez.am.resource.memory.mb
= Ram-per-container
1024
Tez-site.xml
Tez.am.java.opts
= 0.8 * Ram-per-container
819
Tez-site.xml
Hive.tez.container.size
= Ram-per-container
1024
Tez-site.xml
Hive.tez.java.opts
= 0.8 * Ram-per-container
819
 

Hadoop/yarn/mapreduce memory allocation (configuration) scheme

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.