Bird
0
0

Given the following configuration:

medium📝 Predict Output Q13 of 15
Hadoop - Performance Tuning
Given the following configuration:
mapreduce.reduce.memory.mb=4096
mapreduce.reduce.java.opts=-Xmx3072m

What will happen if a reduce task tries to use 3500 MB heap memory?
AThe task will run successfully using 3500 MB heap
BThe task will automatically increase container memory
CThe task will fail due to exceeding Java heap size limit
DThe task will fail due to exceeding container memory limit
Step-by-Step Solution
Solution:
  1. Step 1: Compare requested heap with limits

    Heap limit is 3072 MB, but task tries 3500 MB, which exceeds Java heap limit (-Xmx). Container memory is 4096 MB, so 3500 MB fits container but exceeds heap limit, causing failure.
  2. Final Answer:

    The task will fail due to exceeding Java heap size limit -> Option C
  3. Quick Check:

    Heap > Java heap limit = failure [OK]
Quick Trick: Heap usage must not exceed Java heap size (-Xmx) [OK]
Common Mistakes:
  • Confusing container memory with Java heap size
  • Assuming container memory limits heap directly
  • Thinking container memory auto-adjusts

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Hadoop Quizzes