Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce, mail # user - override mapred-site.xml from command line


Copy link to this message
-
Re: override mapred-site.xml from command line
Mayank Bansal 2012-06-06, 22:50
Check your mapred site xml if these parameters have <final>true</final>

making final to false should solve your problem.

On Wed, Jun 6, 2012 at 3:41 PM, Sid Kumar <[EMAIL PROTECTED]> wrote:

> Hi,
> I am trying to override mapred-site.xml (more specifically
> mapred.compress.map.output
> and mapred.output.compression.
> codec) from the command line when I
> execute the jar.
> I have been using hadoop jar <jarname> <class> -
> Dmapred.compress.map.output=true and
> -Dmapred.output.compression.codec=org.apache.hadoop.io.SnappyCodec
>
> The above doesnt work as the job.xml for the jar still uses the default
> properties and not the one i specify here. Is there a different approach to
> override these properties. I am submitting jobs from a client machine that
> has the same version of configuration files as my cluster.
>
> Thanks
>
> Sid
>