Example #1
0
 /// <summary>Create a local reduce input file name.</summary>
 /// <param name="mapId">a map task id</param>
 /// <param name="size">the size of the file</param>
 /// <returns>path</returns>
 /// <exception cref="System.IO.IOException"/>
 public override Path GetInputFileForWrite(TaskID mapId, long size)
 {
     return(lDirAlloc.GetLocalPathForWrite(string.Format(ReduceInputFileFormatString,
                                                         MRJobConfig.Output, mapId.GetId()), size, GetConf()));
 }
Example #2
0
 /// <summary>Create a local reduce input file name.</summary>
 /// <param name="mapId">a map task id</param>
 /// <param name="size">the size of the file</param>
 /// <returns>path</returns>
 /// <exception cref="System.IO.IOException"/>
 public override Path GetInputFileForWrite(TaskID mapId, long size)
 {
     return(lDirAlloc.GetLocalPathForWrite(string.Format(ReduceInputFileFormatString,
                                                         GetAttemptOutputDir().ToString(), mapId.GetId()), size, conf));
 }