[Hadoop]设置Task的jvm heap size

版本:hadoop 1.0.4

可以在这里设置:

<!--mapred-site.xml-->
<property>
  <name>mapred.child.java.opts</name>
  <value>-Xmx512m</value>
</property>

有人说应该改hadoop-env.sh里的HADOOP_HEAPSIZE. 这是错的,HADOOP_HEAPSIZE是给一些HADOOP后台进程用的,不是给task用的

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.