Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 05-06-2015 04:05 AM - edited 09-16-2022 02:28 AM
Hi, I'm running mapreduce job using hadoop jar command
The problem is that hadoop-core.jar contains mapred-default.xml with -Xmx200m for mapreduce.
I have correct client conf in /etc/hadoop/conf/mapred-site.xml
xmx is big enough there.
When job started,
mapred.child.java.opts -Xmx200m -Djava.net.preferIPv4Stack=true -Xmx9448718336
property is merged. -Xmx200m comes from bundled mapred-default.xml
and
-Djava.net.preferIPv4Stack=true -Xmx9448718336 comes from my config.
Job uses -Xmx200m for mappres and fails
What is the right way to exclude -Xmx200m and leave only -Xmx9448718336 from mapred-site.xml?
Created 05-06-2015 06:52 AM
Ha, looks like Camus runs local job runner, that is the problem...
Need to inform camus that we have yarn here.
Created 05-06-2015 04:11 AM
Created 05-06-2015 05:59 AM
Thanks for the reply.
There are several myctical problems:
1. Here is what ResourceManager conf says:
http://my.resource.manager.ru:8088/conf
| mapred.child.java.opts | -Xmx200m -Djava.net.preferIPv4Stack=true -Xmx9448718336 |
but ps -ef | grep java says:
yarn 54070 53908 99 15:55 ? 00:08:20 /usr/java/jdk1.7.0_55/bin/java -Xmx1000m -Dhadoop.log.dir=/opt/cloudera/parcels/CDH-5.3.2-1.cdh5.3.2.p0.10/lib/hadoop/logs -Dhadoop.log.file=hadoop.log -Dhadoop.home.dir=/opt/cloudera/parcels/CDH-5.3.2-1.cdh5.3.2.p0.10/lib/hadoop -Dhadoop.id.str= -Dhadoop.root.logger=INFO,console -Djava.library.path=/opt/cloudera/parcels/CDH-5.3.2-1.cdh5.3.2.p0.10/lib/hadoop/lib/native -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -Dhadoop.security.logger=INFO,NullAppender org.apache.hadoop.util.RunJar camus-tool.jar com.linkedin.camus.etl.kafka.CamusJob -P camus.properties
NOw we get xmx as 1000m, which is still not enough, but we don't have such property...
Created 05-06-2015 06:52 AM
Ha, looks like Camus runs local job runner, that is the problem...
Need to inform camus that we have yarn here.