AM Optimization for Big MapReduce Tasks
Scenario
A big task containing 100,000 Map tasks fails. The query result shows that ApplicationMaster (AM) responds slowly and finally times out.
When the number of tasks increases, the number of objects managed by the AM increases, which requires much more memory for management. The default memory heap for AM is 1 GB.
Procedure
You can improve the AM performance by setting the following parameters.
Navigation path for setting parameters:
Adjust the following parameters in the mapred-site.xml configuration file on the client to adjust the following parameters: The mapred-site.xml configuration file is in the conf directory of the client installation path, for example, /opt/client/Yarn/config.
Parameter |
Description |
Default Value |
---|---|---|
yarn.app.mapreduce.am.resource.mb |
This parameter must be greater than the heap size specified by yarn.app.mapreduce.am.command-opts. Unit: MB |
1536 |
yarn.app.mapreduce.am.command-opts |
Indicates the JVM startup parameters loaded to MapReduce ApplicationMaster. |
|
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot