How Do I Handle the Problem that MapReduce Task Has No Progress for a Long Time?
Symptom
The MapReduce task has no progress for a long time.
Answer
Generally, this is caused by insufficient memory. If the memory is small, it takes a long time to copy the map output.
To reduce the waiting time, increase the heap memory.
You can optimize task configuration based on the number of mappers and the data size of each mapper. Optimize the following parameters in the Client installation path/Yarn/config/mapred-site.xml file based on the size of the input data:
- mapreduce.reduce.memory.mb
- mapreduce.reduce.java.opts
For example, if the data size of 10 mappers is 5 GB, the ideal heap memory is 1.5 GB. Increase the heap memory as the data size increases.
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