You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Milind Bhandarkar (JIRA)" <ji...@apache.org> on 2009/02/20 19:15:01 UTC
[jira] Created: (HADOOP-5299) Reducer inputs should be spilled to
HDFS rather than local disk.
Reducer inputs should be spilled to HDFS rather than local disk.
----------------------------------------------------------------
Key: HADOOP-5299
URL: https://issues.apache.org/jira/browse/HADOOP-5299
Project: Hadoop Core
Issue Type: Improvement
Components: mapred
Affects Versions: 0.19.0
Environment: All
Reporter: Milind Bhandarkar
Currently, both map outputs and reduce inputs are stored on local disks of tasktrackers. (Un) Availability of local disk space for intermediate data is seen as a major factor in job failures.
The suggested solution is to store these intermediate data on HDFS (maybe with replication factor of 1). However, the main blocker issue with that solution is that lots of temporary names (proportional to total number of maps), can overwhelm the namenode, especially since the map outputs are typically small (most produce one block output).
Also, as we see in many applications, the map outputs can be estimated more accurately, and thus users can plan accordingly, based on available local disk space.
However, the reduce input sizes can vary a lot, especially for skewed data (or because of bad partitioning.)
So, I suggest that it makes more sense to keep map outputs on local disks, but the reduce inputs (when spilled from reducer memory) should go to HDFS.
Adding a configuration variable to indicate the filesystem to be used for reduce-side spills would let us experiment and compare the efficiency of this new scheme.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-5299) Reducer inputs should be spilled to
HDFS rather than local disk.
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676028#action_12676028 ]
Doug Cutting commented on HADOOP-5299:
--------------------------------------
> The pread performance of hdfs is too low to be used in the shuffle.
Do you think this is an inherent problem or just a problem with the current pread implementation? If, in the vast majority of the cases the blocks were local to the reduce node, then pread performance should not be terrible, should it?
> Clearly the goal is to remove the task tracker's attempts at managing local store.
Yes. So, if mappers still need to use local store then this is dead in the water. Unfortunately, as several have pointed out, map outputs are too numerous to reasonably store in HDFS. So the question then becomes, can we arrange things so that map spills always happen to the net, rather than to local disk? This implies that map outputs would be pushed to reduce nodes rather than pulled, that maps could block if reduce nodes were busy, etc.. Big changes, sure, but possible?
> Reducer inputs should be spilled to HDFS rather than local disk.
> ----------------------------------------------------------------
>
> Key: HADOOP-5299
> URL: https://issues.apache.org/jira/browse/HADOOP-5299
> Project: Hadoop Core
> Issue Type: Improvement
> Components: mapred
> Affects Versions: 0.19.0
> Environment: All
> Reporter: Milind Bhandarkar
>
> Currently, both map outputs and reduce inputs are stored on local disks of tasktrackers. (Un) Availability of local disk space for intermediate data is seen as a major factor in job failures.
> The suggested solution is to store these intermediate data on HDFS (maybe with replication factor of 1). However, the main blocker issue with that solution is that lots of temporary names (proportional to total number of maps), can overwhelm the namenode, especially since the map outputs are typically small (most produce one block output).
> Also, as we see in many applications, the map outputs can be estimated more accurately, and thus users can plan accordingly, based on available local disk space.
> However, the reduce input sizes can vary a lot, especially for skewed data (or because of bad partitioning.)
> So, I suggest that it makes more sense to keep map outputs on local disks, but the reduce inputs (when spilled from reducer memory) should go to HDFS.
> Adding a configuration variable to indicate the filesystem to be used for reduce-side spills would let us experiment and compare the efficiency of this new scheme.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-5299) Reducer inputs should be spilled to
HDFS rather than local disk.
Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675640#action_12675640 ]
Owen O'Malley commented on HADOOP-5299:
---------------------------------------
Using one big file won't work. The pread performance of hdfs is too low to be used in the shuffle. Furthermore, that means you can't free up sections of it that have been merged. On clusters with tight free space, doubling (or more) the size of the reduce input on disk is not ok.
In order for other task attempts to reuse the shuffled data, the shuffle would also need to continuously store its state in hdfs also, leading to more traffic...
Furthermore, I'm against a change that ties map/reduce to only work with hdfs. It should continue to work with just s3 or kfs or even local file system. It is possible to make it work, by using sub-directories of the system dir, but it will interact badly with security, i'd imagine.
> Reducer inputs should be spilled to HDFS rather than local disk.
> ----------------------------------------------------------------
>
> Key: HADOOP-5299
> URL: https://issues.apache.org/jira/browse/HADOOP-5299
> Project: Hadoop Core
> Issue Type: Improvement
> Components: mapred
> Affects Versions: 0.19.0
> Environment: All
> Reporter: Milind Bhandarkar
>
> Currently, both map outputs and reduce inputs are stored on local disks of tasktrackers. (Un) Availability of local disk space for intermediate data is seen as a major factor in job failures.
> The suggested solution is to store these intermediate data on HDFS (maybe with replication factor of 1). However, the main blocker issue with that solution is that lots of temporary names (proportional to total number of maps), can overwhelm the namenode, especially since the map outputs are typically small (most produce one block output).
> Also, as we see in many applications, the map outputs can be estimated more accurately, and thus users can plan accordingly, based on available local disk space.
> However, the reduce input sizes can vary a lot, especially for skewed data (or because of bad partitioning.)
> So, I suggest that it makes more sense to keep map outputs on local disks, but the reduce inputs (when spilled from reducer memory) should go to HDFS.
> Adding a configuration variable to indicate the filesystem to be used for reduce-side spills would let us experiment and compare the efficiency of this new scheme.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-5299) Reducer inputs should be spilled to
HDFS rather than local disk.
Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675689#action_12675689 ]
Owen O'Malley commented on HADOOP-5299:
---------------------------------------
I should also expand on the perennial idea of putting the map outputs in HDFS is really problematic. Writing the data isn't that bad with two files (the index and map output data), but the killer is the reading. There are M*R pairs and they all need to read their data. On large jobs with 300,000 maps and 4,000 reduces that means there are 2,400,000,000 file open operations. That is a *lot* of Name Node traffic. By comparison, the 600,000 creates and closes for writing the map output to HDFS is in the noise.
> Reducer inputs should be spilled to HDFS rather than local disk.
> ----------------------------------------------------------------
>
> Key: HADOOP-5299
> URL: https://issues.apache.org/jira/browse/HADOOP-5299
> Project: Hadoop Core
> Issue Type: Improvement
> Components: mapred
> Affects Versions: 0.19.0
> Environment: All
> Reporter: Milind Bhandarkar
>
> Currently, both map outputs and reduce inputs are stored on local disks of tasktrackers. (Un) Availability of local disk space for intermediate data is seen as a major factor in job failures.
> The suggested solution is to store these intermediate data on HDFS (maybe with replication factor of 1). However, the main blocker issue with that solution is that lots of temporary names (proportional to total number of maps), can overwhelm the namenode, especially since the map outputs are typically small (most produce one block output).
> Also, as we see in many applications, the map outputs can be estimated more accurately, and thus users can plan accordingly, based on available local disk space.
> However, the reduce input sizes can vary a lot, especially for skewed data (or because of bad partitioning.)
> So, I suggest that it makes more sense to keep map outputs on local disks, but the reduce inputs (when spilled from reducer memory) should go to HDFS.
> Adding a configuration variable to indicate the filesystem to be used for reduce-side spills would let us experiment and compare the efficiency of this new scheme.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-5299) Reducer inputs should be spilled to
HDFS rather than local disk.
Posted by "eric baldeschwieler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675788#action_12675788 ]
eric baldeschwieler commented on HADOOP-5299:
---------------------------------------------
owen,
A couple of tricks on the map side could really cut down your numbers. The interesting hack of passing "open file info" around from maps to reduces and skipping the name node for example. Storing indexes at the end of maps would halve file opens of course. Requires more thought before discarding.
On coupling MR to HDFS... I agree that one should be able to run MR on systems without an HDFS, absent a compelling reason not to. That doesn't seem to preclude taking advantage of an existing HDFS if a performance gain could be found.
Milind,
I don't see reduce side to be compelling enough to check in code, since it complicates things without fixing the basic flaw of storing lots of temp data outside of the distributed FS, where it can be more easily managed. I'd be interested in seeing experimental data and patches to play with. But I'd hate to see us check anything like this in, without good supporting data for why it makes real systems better.
> Reducer inputs should be spilled to HDFS rather than local disk.
> ----------------------------------------------------------------
>
> Key: HADOOP-5299
> URL: https://issues.apache.org/jira/browse/HADOOP-5299
> Project: Hadoop Core
> Issue Type: Improvement
> Components: mapred
> Affects Versions: 0.19.0
> Environment: All
> Reporter: Milind Bhandarkar
>
> Currently, both map outputs and reduce inputs are stored on local disks of tasktrackers. (Un) Availability of local disk space for intermediate data is seen as a major factor in job failures.
> The suggested solution is to store these intermediate data on HDFS (maybe with replication factor of 1). However, the main blocker issue with that solution is that lots of temporary names (proportional to total number of maps), can overwhelm the namenode, especially since the map outputs are typically small (most produce one block output).
> Also, as we see in many applications, the map outputs can be estimated more accurately, and thus users can plan accordingly, based on available local disk space.
> However, the reduce input sizes can vary a lot, especially for skewed data (or because of bad partitioning.)
> So, I suggest that it makes more sense to keep map outputs on local disks, but the reduce inputs (when spilled from reducer memory) should go to HDFS.
> Adding a configuration variable to indicate the filesystem to be used for reduce-side spills would let us experiment and compare the efficiency of this new scheme.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-5299) Reducer inputs should be spilled to
HDFS rather than local disk.
Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675440#action_12675440 ]
Arun C Murthy commented on HADOOP-5299:
---------------------------------------
Caveat emptor:
# Typical mid-to-large applications have reducers which process multiple gigabytes of data (e.g. our friend, the sort<nodes>, has each reducer generating 5GB) which means we'll need atleast tens of intermediate merged files per reducer (assuming a heap-size of 512M).
# io.sort.factor defaults to 100, which means we might open upto a 100 files for the final merge which then feeds the 'reduce' call. Given that we might have every reducer in the cluster open a 100 files at time; for a mid-size cluster of 500 nodes with 4 reduce slots that would be 2000 * 100 ...
> Reducer inputs should be spilled to HDFS rather than local disk.
> ----------------------------------------------------------------
>
> Key: HADOOP-5299
> URL: https://issues.apache.org/jira/browse/HADOOP-5299
> Project: Hadoop Core
> Issue Type: Improvement
> Components: mapred
> Affects Versions: 0.19.0
> Environment: All
> Reporter: Milind Bhandarkar
>
> Currently, both map outputs and reduce inputs are stored on local disks of tasktrackers. (Un) Availability of local disk space for intermediate data is seen as a major factor in job failures.
> The suggested solution is to store these intermediate data on HDFS (maybe with replication factor of 1). However, the main blocker issue with that solution is that lots of temporary names (proportional to total number of maps), can overwhelm the namenode, especially since the map outputs are typically small (most produce one block output).
> Also, as we see in many applications, the map outputs can be estimated more accurately, and thus users can plan accordingly, based on available local disk space.
> However, the reduce input sizes can vary a lot, especially for skewed data (or because of bad partitioning.)
> So, I suggest that it makes more sense to keep map outputs on local disks, but the reduce inputs (when spilled from reducer memory) should go to HDFS.
> Adding a configuration variable to indicate the filesystem to be used for reduce-side spills would let us experiment and compare the efficiency of this new scheme.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-5299) Reducer inputs should be spilled to
HDFS rather than local disk.
Posted by "eric baldeschwieler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676541#action_12676541 ]
eric baldeschwieler commented on HADOOP-5299:
---------------------------------------------
I don't think you want to try to store map outs on reduce nodes. At least not the sole copy.
1st off, this means when you loss a reduce node you will need to rerun every map to regen a fraction of its data. Game over.
Also, in our system we don't fix all reduces before starting M/R. One could argue that this is a strength or a weakness, but changing it would be a big deal.
Other tricks could be applied. The simplest:
- Concatenate the output of a jobs maps on a node into a single file (or one per slot). Then you only need to do one open / map node to shuffle if you are efficient at fetching (we are implementing a shuffle fix that fetches data this way anyway).
----
Again, the larger problem we want to solve here is to simply our management of free space. By pushing this into HDFS, you get the TT out of the role of being a intermediate data storage service. This has lots of advantages:
1) When a local disk fills up, HDFS can handle the problem.
2) Scheduling only needs to track global temporyary storage / job, not per node. This is much simpler
3) We get to rip out the jetty server from TT nodes, simplifying security, management, etc
4) Since all network traffic is now HDFS traffic , we can deal with hotspots etc once
...
> Reducer inputs should be spilled to HDFS rather than local disk.
> ----------------------------------------------------------------
>
> Key: HADOOP-5299
> URL: https://issues.apache.org/jira/browse/HADOOP-5299
> Project: Hadoop Core
> Issue Type: Improvement
> Components: mapred
> Affects Versions: 0.19.0
> Environment: All
> Reporter: Milind Bhandarkar
>
> Currently, both map outputs and reduce inputs are stored on local disks of tasktrackers. (Un) Availability of local disk space for intermediate data is seen as a major factor in job failures.
> The suggested solution is to store these intermediate data on HDFS (maybe with replication factor of 1). However, the main blocker issue with that solution is that lots of temporary names (proportional to total number of maps), can overwhelm the namenode, especially since the map outputs are typically small (most produce one block output).
> Also, as we see in many applications, the map outputs can be estimated more accurately, and thus users can plan accordingly, based on available local disk space.
> However, the reduce input sizes can vary a lot, especially for skewed data (or because of bad partitioning.)
> So, I suggest that it makes more sense to keep map outputs on local disks, but the reduce inputs (when spilled from reducer memory) should go to HDFS.
> Adding a configuration variable to indicate the filesystem to be used for reduce-side spills would let us experiment and compare the efficiency of this new scheme.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-5299) Reducer inputs should be spilled to
HDFS rather than local disk.
Posted by "Devaraj Das (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676880#action_12676880 ]
Devaraj Das commented on HADOOP-5299:
-------------------------------------
bq. Concatenate the output of a jobs maps on a node into a single file (or one per slot). Then you only need to do one open / map node to shuffle if you are efficient at fetching
The first step towards this could be doing HADOOP-2560. Thoughts?
> Reducer inputs should be spilled to HDFS rather than local disk.
> ----------------------------------------------------------------
>
> Key: HADOOP-5299
> URL: https://issues.apache.org/jira/browse/HADOOP-5299
> Project: Hadoop Core
> Issue Type: Improvement
> Components: mapred
> Affects Versions: 0.19.0
> Environment: All
> Reporter: Milind Bhandarkar
>
> Currently, both map outputs and reduce inputs are stored on local disks of tasktrackers. (Un) Availability of local disk space for intermediate data is seen as a major factor in job failures.
> The suggested solution is to store these intermediate data on HDFS (maybe with replication factor of 1). However, the main blocker issue with that solution is that lots of temporary names (proportional to total number of maps), can overwhelm the namenode, especially since the map outputs are typically small (most produce one block output).
> Also, as we see in many applications, the map outputs can be estimated more accurately, and thus users can plan accordingly, based on available local disk space.
> However, the reduce input sizes can vary a lot, especially for skewed data (or because of bad partitioning.)
> So, I suggest that it makes more sense to keep map outputs on local disks, but the reduce inputs (when spilled from reducer memory) should go to HDFS.
> Adding a configuration variable to indicate the filesystem to be used for reduce-side spills would let us experiment and compare the efficiency of this new scheme.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-5299) Reducer inputs should be spilled to
HDFS rather than local disk.
Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675952#action_12675952 ]
Owen O'Malley commented on HADOOP-5299:
---------------------------------------
I really don't think map/reduce should use an internal evolving api of hdfs. That would completely break the possibility of upgrading hdfs and map/reduce independently.
Writing intermediates to hdfs, as you know, is not and can't be a performance gain. Clearly the goal is to remove the task tracker's attempts at managing local store. So, I agree with Eric that this jira isn't very motivated without the map outputs too. Unlike Eric, I don't think *either* is a good idea.
> Reducer inputs should be spilled to HDFS rather than local disk.
> ----------------------------------------------------------------
>
> Key: HADOOP-5299
> URL: https://issues.apache.org/jira/browse/HADOOP-5299
> Project: Hadoop Core
> Issue Type: Improvement
> Components: mapred
> Affects Versions: 0.19.0
> Environment: All
> Reporter: Milind Bhandarkar
>
> Currently, both map outputs and reduce inputs are stored on local disks of tasktrackers. (Un) Availability of local disk space for intermediate data is seen as a major factor in job failures.
> The suggested solution is to store these intermediate data on HDFS (maybe with replication factor of 1). However, the main blocker issue with that solution is that lots of temporary names (proportional to total number of maps), can overwhelm the namenode, especially since the map outputs are typically small (most produce one block output).
> Also, as we see in many applications, the map outputs can be estimated more accurately, and thus users can plan accordingly, based on available local disk space.
> However, the reduce input sizes can vary a lot, especially for skewed data (or because of bad partitioning.)
> So, I suggest that it makes more sense to keep map outputs on local disks, but the reduce inputs (when spilled from reducer memory) should go to HDFS.
> Adding a configuration variable to indicate the filesystem to be used for reduce-side spills would let us experiment and compare the efficiency of this new scheme.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-5299) Reducer inputs should be spilled to
HDFS rather than local disk.
Posted by "Milind Bhandarkar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675422#action_12675422 ]
Milind Bhandarkar commented on HADOOP-5299:
-------------------------------------------
The reasoning behind this suggested change is as follows:
The reasoning are as follows:
1. The number of reducers is typically an order of magnitude smaller than
number of mappers, thus creating these merged inputs on HDFS, they will not
overwhelm the namenode.
2. Reduce input will be spilled to HDFS only in case where it does not fit
in reducer memory.
3. While reducer is fetching map outputs, no user-code for reduce is
executing, thus one can use large buffer for reduce inputs, and so spilling
on HDFS will create large files (say 4-5 blocks each.) Moreover, it's generally equal to the number of output files that will
be written, so proportional to what must already be available on the
namenode.
4. While reducers are fetching data from mappers, they are network bound,
and waiting for maps to complete anyway. So, the overhead of writing to HDFS
is negligible (overlap with wait time for map outputs).
5. The terasort benchmark does not spill reduce input to disk, so will have
no adverse effect on that benchmark with this scheme.
6. Since reducer inputs are available on HDFS, only those maps whose outputs
have not reached all the reducers need to be re-executed (since the reducer
restarted on a different node will have access to the already spilled output
on HDFS.)
7. A speculative attempt for a reducer will not need to refetch all the map
outputs again.
and
8. We can more easily pause a long-running low-priority job when a job
with higher priority is submitted, without losing much work and without
consuming RAM or local temporary disk space. (Thanks to Doug)
> Reducer inputs should be spilled to HDFS rather than local disk.
> ----------------------------------------------------------------
>
> Key: HADOOP-5299
> URL: https://issues.apache.org/jira/browse/HADOOP-5299
> Project: Hadoop Core
> Issue Type: Improvement
> Components: mapred
> Affects Versions: 0.19.0
> Environment: All
> Reporter: Milind Bhandarkar
>
> Currently, both map outputs and reduce inputs are stored on local disks of tasktrackers. (Un) Availability of local disk space for intermediate data is seen as a major factor in job failures.
> The suggested solution is to store these intermediate data on HDFS (maybe with replication factor of 1). However, the main blocker issue with that solution is that lots of temporary names (proportional to total number of maps), can overwhelm the namenode, especially since the map outputs are typically small (most produce one block output).
> Also, as we see in many applications, the map outputs can be estimated more accurately, and thus users can plan accordingly, based on available local disk space.
> However, the reduce input sizes can vary a lot, especially for skewed data (or because of bad partitioning.)
> So, I suggest that it makes more sense to keep map outputs on local disks, but the reduce inputs (when spilled from reducer memory) should go to HDFS.
> Adding a configuration variable to indicate the filesystem to be used for reduce-side spills would let us experiment and compare the efficiency of this new scheme.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-5299) Reducer inputs should be spilled to
HDFS rather than local disk.
Posted by "Milind Bhandarkar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675453#action_12675453 ]
Milind Bhandarkar commented on HADOOP-5299:
-------------------------------------------
@Arun
> 1. Typical mid-to-large applications have reducers which process multiple gigabytes of data (e.g. our friend, the sort<nodes>, has each reducer generating 5GB) which means we'll need atleast tens of intermediate merged files per reducer (assuming a heap-size of 512M).
Would it be possible to keep a single file open for writing, and only flushing the buffer on spill ? Thus, total number of input files is still one per reducer ?
> 2. io.sort.factor defaults to 100, which means we might open upto a 100 files for the final merge which then feeds the 'reduce' call. Given that we might have every reducer in the cluster open a 100 files at time; for a mid-size cluster of 500 nodes with 4 reduce slots that would be 2000 * 100 ...
If the trick above works, then this could be only one file open, with multiple preads, no ?
> Reducer inputs should be spilled to HDFS rather than local disk.
> ----------------------------------------------------------------
>
> Key: HADOOP-5299
> URL: https://issues.apache.org/jira/browse/HADOOP-5299
> Project: Hadoop Core
> Issue Type: Improvement
> Components: mapred
> Affects Versions: 0.19.0
> Environment: All
> Reporter: Milind Bhandarkar
>
> Currently, both map outputs and reduce inputs are stored on local disks of tasktrackers. (Un) Availability of local disk space for intermediate data is seen as a major factor in job failures.
> The suggested solution is to store these intermediate data on HDFS (maybe with replication factor of 1). However, the main blocker issue with that solution is that lots of temporary names (proportional to total number of maps), can overwhelm the namenode, especially since the map outputs are typically small (most produce one block output).
> Also, as we see in many applications, the map outputs can be estimated more accurately, and thus users can plan accordingly, based on available local disk space.
> However, the reduce input sizes can vary a lot, especially for skewed data (or because of bad partitioning.)
> So, I suggest that it makes more sense to keep map outputs on local disks, but the reduce inputs (when spilled from reducer memory) should go to HDFS.
> Adding a configuration variable to indicate the filesystem to be used for reduce-side spills would let us experiment and compare the efficiency of this new scheme.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.