<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: how to properly override mapper's JVM options in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-properly-override-mapper-s-JVM-options/m-p/183308#M67979</link>
    <description>&lt;P&gt;I figured out what was wrong : &lt;/P&gt;&lt;P&gt;In fact my class has to extends Configured and implements Tools in order to parse the confirguration properties from the command line. Works fine now !&lt;/P&gt;&lt;P&gt;I even figured out that I could set the property in ambari : label "MR Map Java Heap Size" actually maps the "mapreduce.map.java.opts" property, which is pretty confusing ...&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2017 17:08:16 GMT</pubDate>
    <dc:creator>schausson</dc:creator>
    <dc:date>2017-09-14T17:08:16Z</dc:date>
    <item>
      <title>how to properly override mapper's JVM options</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-properly-override-mapper-s-JVM-options/m-p/183307#M67978</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I'm currently struggling with map reduce configuration...&lt;/P&gt;&lt;P&gt; I'm trying to implement the common "wordcount example", but I modified the implementation so that mappers calls an HTTPS web service to track overall progression (just for the sake of demonstration).
I have to provide the mappers' JVM with a custom truststore that containe the certificate of the CA that issued the web server's certificate and I tried to use following syntax :&lt;/P&gt;&lt;PRE&gt;hadoop jar mycustommr.jar TestHttpsMR -Dmapreduce.map.java.opts="-Djavax.net.ssl.trustStore=/my/custom/path/cacerts -Djavax.net.ssl.trustStorePassword=mypassword" wordcount_in wordcount_out &lt;/PRE&gt;&lt;P&gt;But I systematically hit following error : &lt;/P&gt;&lt;PRE&gt;"Exception in thread "main" org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory wordcount_in already exists"&lt;/PRE&gt;&lt;P&gt;which indicates that arguments are not properly parsed : it seems that  &lt;STRONG&gt;-Dmapreduce.map.java.opts="-Djavax.net.ssl.trustStore=/my/custom/path/cacerts -Djavax.net.ssl.trustStorePassword=mypassword"&lt;/STRONG&gt; is interpreted as an application argument (the first one) instead of being passed to the mappers' JVM &lt;/P&gt;&lt;P&gt;What's wrong with this syntax ? How could I override &lt;B&gt;mapreduce.map.java.opts&lt;/B&gt; property without disturbing application parameters ? &lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 21:01:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-properly-override-mapper-s-JVM-options/m-p/183307#M67978</guid>
      <dc:creator>schausson</dc:creator>
      <dc:date>2017-09-13T21:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to properly override mapper's JVM options</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-properly-override-mapper-s-JVM-options/m-p/183308#M67979</link>
      <description>&lt;P&gt;I figured out what was wrong : &lt;/P&gt;&lt;P&gt;In fact my class has to extends Configured and implements Tools in order to parse the confirguration properties from the command line. Works fine now !&lt;/P&gt;&lt;P&gt;I even figured out that I could set the property in ambari : label "MR Map Java Heap Size" actually maps the "mapreduce.map.java.opts" property, which is pretty confusing ...&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 17:08:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-properly-override-mapper-s-JVM-options/m-p/183308#M67979</guid>
      <dc:creator>schausson</dc:creator>
      <dc:date>2017-09-14T17:08:16Z</dc:date>
    </item>
  </channel>
</rss>

