<div dir="ltr"><div>Hi everybody,</div><div><br></div><div>I have created a cluster hadoop (When create Node group template, I have modified mapred.child.java.opts: "-Xmx200m" to "-Xmx1024m"). Then i ssh to master-instance and run: "hadoop jar hadoop-examples-1.2.1.jar pi 10 100", I get the error:</div>
<div>java.lang.OutOfMemoryError: Java heap space</div><div><br></div><div>Check file /etc/hadoop/hadoop-env.sh. I see:</div><div>Default: export HADOOP_CLIENT_OPTS="-Xmx128m HADOOP_CLIENT_OPTS"</div><div><br></div>
<div>Then, I edit 128 to 1024:</div><div>export HADOOP_CLIENT_OPTS="-Xmx1024m $HADOOP_CLIENT_OPTS"</div><div><br></div><div>When run "hadoop jar hadoop-examples-1.2.1.jar pi 10 100", it's worked! But, my cluster still in a state: "Watting" and ip_master:50030/jobtracker.jps not running?</div>
<div><br></div><div>Why HADOOP_CLIENT_OPTS in /etc/hadoop/hadoop-env.sh not automatic update when create cluster?</div><div><br></div><div>What is the problem here? Thank you very much!</div><div><br></div><div><br></div>
</div>