Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Is it possible to dynamically set map and reduce memory for a Mapreduce job?

avatar
Rising Star
 
1 ACCEPTED SOLUTION

avatar

@Phoncy Joseph

The configs can be changed when you are submitting the job and not while the job is running. Below are the configs to change them while submitting the job.

-Dmapreduce.map.memory.mb=2048 -Dmapreduce.reduce.memory.mb=2048

View solution in original post

5 REPLIES 5

avatar

@Phoncy Joseph

The configs can be changed when you are submitting the job and not while the job is running. Below are the configs to change them while submitting the job.

-Dmapreduce.map.memory.mb=2048 -Dmapreduce.reduce.memory.mb=2048

avatar
Rising Star

Thanks for the response. I wanted to know if the memory assignment could be done, without providing these while submitting jobs.

avatar

@Phoncy Joseph There are only 3 ways as of now:

- Global configs which are in mapred-site.xml

- Passing through command line while submitting the job

- Hardcode in the code(although this is not dynamic).

avatar
Rising Star

Thank you

avatar

@Phoncy Joseph You're welcome. Feel free to accept the answer if this helps you.