I have a shared cluster running Hadoop-0.20.2. Occasionally users don't realize that the default memory settings chosen are based on the amount of available memory. Can I enforce a maximum value for Xmx?

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

In hadoop-env.sh there is a configuration option for this:

# The maximum amount of heap to use, in MB. Default is 1000.
export HADOOP_HEAPSIZE=1500

This file exists on the namenode as well as all map/reducers

link|improve this answer
Hmm, I have that line commented out so it should be using 1000, however I have experienced people setting mappers to 2GB and up. Is the default not 1000 or does this only set heap for the tracker? – Daniel Rucci Jan 4 '11 at 18:48
Ahh, I think what you're looking for is the ${HADOOP_HOME}/conf/mapred-site.xml. Particularly the "mapred.reduce.java.opts" and "mapred.child.java.opts" properties. You may also want to check out the memory monitoring options: hadoop.apache.org/common/docs/r0.20.2/… – Josh Russell Jan 4 '11 at 22:55
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.