- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Is it possible to dynamically set map and reduce memory for a Mapreduce job?
- Labels:
-
Apache Hadoop
Created ‎12-18-2017 01:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎12-18-2017 06:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎12-18-2017 06:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎12-19-2017 01:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the response. I wanted to know if the memory assignment could be done, without providing these while submitting jobs.
Created ‎12-19-2017 03:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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).
Created ‎12-22-2017 11:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you
Created ‎12-22-2017 11:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Phoncy Joseph You're welcome. Feel free to accept the answer if this helps you.
