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

  • SEARCH
  • Home
  • 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 8794509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:15:41+00:00 2026-06-13T23:15:41+00:00

I would like to know how to specify mapreduce configurations such as mapred.task.timeout ,

  • 0

I would like to know how to specify mapreduce configurations such as mapred.task.timeout , mapred.min.split.size etc. , when running a streaming job using custom jar.

We can use the following way to specify these configurations when we run using external scripting languages like ruby or python:

ruby elastic-mapreduce -j –stream –step-name “mystream” –jobconf mapred.task.timeout=0 –jobconf mapred.min.split.size=52880 –mapper s3://somepath/mapper.rb –reducer s3:somepath/reducer.rb –input s3://somepath/input –output s3://somepath/output

I tried the following ways, but none of them worked:

  1. ruby elastic-mapreduce –jobflow –jar s3://somepath/job.jar –arg s3://somepath/input –arg s3://somepath/output –args -m,mapred.min.split.size=52880 -m,mapred.task.timeout=0

  2. ruby elastic-mapreduce –jobflow –jar s3://somepath/job.jar –arg s3://somepath/input –arg s3://somepath/output –args -jobconf,mapred.min.split.size=52880 -jobconf,mapred.task.timeout=0

I would also like to know how to pass java options to a streaming job using custom jar in EMR.
When running locally on hadoop we can pass it as follows:

bin/hadoop jar job.jar input_path output_path -D< some_java_parameter >=< some_value >

  • 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-06-13T23:15:42+00:00Added an answer on June 13, 2026 at 11:15 pm

    I believe if you want to set these on a per-job basis, then you need to

    A) for custom Jars, pass them into your jar as arguments, and process them yourself. I believe this can be automated as follows:

    public static void main(String[] args) throws Exception {
      Configuration conf = new Configuration();
      args = new GenericOptionsParser(conf, args).getRemainingArgs();
      //....
    }
    

    Then create the job in this manner (haven’t verified if works though):

     > elastic-mapreduce --jar s3://mybucket/mycode.jar \
        --args "-D,mapred.reduce.tasks=0"
        --arg s3://mybucket/input \
        --arg s3://mybucket/output
    

    The GenericOptionsParser should automatically transfer the -D and -jobconf parameters into Hadoop’s job setup. More details: http://hadoop.apache.org/docs/r0.20.0/api/org/apache/hadoop/util/GenericOptionsParser.html

    B) for the hadoop streaming jar, you also just pass the configuration change to the command

    > elastic-mapreduce --jobflow j-ABABABABA \
       --stream --jobconf mapred.task.timeout=600000 \
       --mapper s3://mybucket/mymapper.sh \
       --reducer s3://mybucket/myreducer.sh \
       --input s3://mybucket/input \
       --output s3://mybucket/output \
       --jobconf mapred.reduce.tasks=0
    

    More details: https://forums.aws.amazon.com/thread.jspa?threadID=43872 and elastic-mapreduce --help

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

Sidebar

Related Questions

I'm building a custom provider and would like to know how to specify a
I would like to know if it is possible to specify a subdirectory for
I would like to know the size of the movie I am watching on
I would like to know if there's any way to specify an inline array
I would like to know if it is possible to write an Ant task
Hi would like to know how to specify a FetchRequest where i can order
I would like to know if it's possible to specify more than just drawable-ldpi,
I would like to know if someone found a trick to specify a settings.xml
I would like to know how to specify user name and password to be
i would like know some reference. I know i can googling it. but prefer

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.