瀏覽代碼

HADOOP-4510. Make getTaskOutputPath public. (Chris Wensel via omalley)
Merged -r 707935:707936 from trunk.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.19@709301 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 16 年之前
父節點
當前提交
a95c1bd464
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 0
      CHANGES.txt
  2. 1 1
      src/mapred/org/apache/hadoop/mapred/FileOutputFormat.java

+ 2 - 0
CHANGES.txt

@@ -463,6 +463,8 @@ Release 0.19.0 - Unreleased
     HADOOP-4105.  Add forrest documentation for libhdfs.
     (Pete Wyckoff via cutting)
 
+    HADOOP-4510. Make getTaskOutputPath public. (Chris Wensel via omalley)
+
   OPTIMIZATIONS
 
     HADOOP-3556. Removed lock contention in MD5Hash by changing the 

+ 1 - 1
src/mapred/org/apache/hadoop/mapred/FileOutputFormat.java

@@ -211,7 +211,7 @@ public abstract class FileOutputFormat<K, V> implements OutputFormat<K, V> {
    * @return path to the task's temporary output file
    * @throws IOException
    */
-  protected static Path getTaskOutputPath(JobConf conf, String name) 
+  public static Path getTaskOutputPath(JobConf conf, String name) 
   throws IOException {
     // ${mapred.out.dir}
     Path outputPath = getOutputPath(conf);