You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by aa...@apache.org on 2019/07/26 12:22:01 UTC
[hadoop] branch trunk updated: MAPREDUCE-6973. Fix comments on
creating _SUCCESS file.
This is an automated email from the ASF dual-hosted git repository.
aajisaka pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new c0a0c35 MAPREDUCE-6973. Fix comments on creating _SUCCESS file.
c0a0c35 is described below
commit c0a0c353e86fc3f3d4eedd91aeb9d5b9c8eb748a
Author: Mehul Garnara <me...@capitalone.com>
AuthorDate: Mon Oct 2 13:00:36 2017 -0400
MAPREDUCE-6973. Fix comments on creating _SUCCESS file.
This closes #280
Signed-off-by: Akira Ajisaka <aa...@apache.org>
---
.../org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java
index 94af338..7f1ea61 100644
--- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java
+++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java
@@ -409,7 +409,7 @@ public class FileOutputCommitter extends PathOutputCommitter {
LOG.info("Skip cleanup the _temporary folders under job's output " +
"directory in commitJob.");
} else {
- // delete the _temporary folder and create a _done file in the o/p
+ // delete the _temporary folder and create a _SUCCESS file in the o/p
// folder
try {
cleanupJob(context);
@@ -426,6 +426,7 @@ public class FileOutputCommitter extends PathOutputCommitter {
}
// True if the job requires output.dir marked on successful job.
// Note that by default it is set to true.
+ // Create a _SUCCESS file in the o/p folder.
if (context.getConfiguration().getBoolean(
SUCCESSFUL_JOB_OUTPUT_DIR_MARKER, true)) {
Path markerPath = new Path(outputPath, SUCCEEDED_FILE_NAME);
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org