Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6607237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:28:55+00:00 2026-05-25T19:28:55+00:00

Currently I am trying to pass some values through command line arguments and then

  • 0

Currently I am trying to pass some values through command line arguments and then parse it using GenericOptionsParser with tool implemented.

from the Master node I run something like this:

bin/hadoop jar MYJAR.jar MYJOB -D mapred.reduce.tasks=13

But this only get applied on the Master!! Is there any way to make this applied on the slaves as well?

I use Hadoop 0.20.203.

Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:28:55+00:00Added an answer on May 25, 2026 at 7:28 pm

    But this only get applied on the Master!! Is there any way to make this applied on the slaves as well?

    According to the "Hadoop : The Definitive Guide". Setting some of the property on the client side is of no use. You need to set the same in the configuration file. Note, that you can also create new properties in the configuration files and read them in the code using the Configuration Object.

    Be aware that some properties have no effect when set in the client configuration. For
    example, if in your job submission you set mapred.tasktracker.map.tasks.maximum with
    the expectation that it would change the number of task slots for the tasktrackers running your job, then you would be disappointed, since this property only is only honored
    if set in the tasktracker’s mapred-site.html file. In general, you can tell the component
    where a property should be set by its name, so the fact that mapred.task.tracker.map.tasks.maximum starts with mapred.tasktracker gives you a clue that it can be set only for the tasktracker daemon. This is not a hard and fast rule, however, so in some cases you may need to resort to trial and error, or even reading the source.

    You can also configure the environment of the Hadoop variables using the HADOOP_*_OPTS in the conf/hadoop-env.sh file.

    Again, according to the "Hadoop : The Definitive Guide".

    Do not confuse setting Hadoop properties using the -D property=value option to GenericOptionsParser (and ToolRunner) with setting JVM system properties using the -Dproperty=value option to the java command. The syntax for JVM system properties does not allow any whitespace between the D and the property name, whereas GenericOptionsParser requires them to be separated by whitespace.

    JVM system properties are retrieved from the java.lang.System class, whereas Hadoop properties are accessible only from a Configuration object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I'm trying to parse some html and return an array with the values
I'm trying to parse some XML data using jQuery, and as it stands I
I am trying to set some default values for an object using after_initialize .
I'm currently trying to work through MVC validation, and am coming up against some
So I know how to parse some XML structures but I am currently trying
I'm currently trying to pass a mono threaded program to multithread. This software do
I am currently trying to pass a generated JSON string to dojo for parsing
I am currently trying to create a function which will allow me to pass
I'm currently trying to read in an XML file, make some minor changes (alter
I am currently trying to optimize some DSP related code with Shark and found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.