Help Center/ MapReduce Service/ Troubleshooting/ Using Hive/ Setting the Map/Reduce Memory on the Client
Updated on 2025-12-01 GMT+08:00
Setting the Map/Reduce Memory on the Client
Symptom
How do I set Map and Reduce memory on the client?
Procedure
Before SQL statement execution, run the set command to set parameters of clients related to Map/Reduce.
The following parameters are related to Map and Reduce memory:
set mapreduce.map.memory.mb=4096; //Memory required by each Map task set mapreduce.map.java.opts=-Xmx3276M; //Maximum memory used by the JVM of each Map task set mapreduce.reduce.memory.mb=4096; //Memory required by each Reduce task set mapreduce.reduce.java.opts=-Xmx3276M; //Maximum memory used by the JVM of each Reduce task set mapred.child.java.opts=-Xms1024M -Xmx3584M; //A global parameter used to set Map and Reduce in a unified manner
Parameter settings take effect for the current session only.
Parent topic: Using Hive
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.