Bird
0
0

Given the configuration:

medium📝 Predict Output Q4 of 15
Hadoop - Performance Tuning
Given the configuration:
mapreduce.map.memory.mb=2048
mapreduce.map.java.opts=-Xmx1024m

What is the maximum Java heap size for a map task container?
A2048 MB
B512 MB
C1024 MB
D3072 MB
Step-by-Step Solution
Solution:
  1. Step 1: Understand container memory vs Java heap size

    Container memory is total memory allocated; Java heap size is set by java.opts.
  2. Step 2: Identify Java heap size from java.opts

    -Xmx1024m means max heap size is 1024 MB.
  3. Final Answer:

    1024 MB -> Option C
  4. Quick Check:

    Java heap size = -Xmx value in java.opts [OK]
Quick Trick: Java heap size is from -Xmx in java.opts, not container memory [OK]
Common Mistakes:
  • Using container memory as heap size
  • Adding map.memory.mb and java.opts values
  • Ignoring java.opts setting

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Hadoop Quizzes