From 47da40157f801bb2884b634ace4e5aafb231cca1 Mon Sep 17 00:00:00 2001 From: ywheel Date: Tue, 13 Feb 2018 09:54:06 +0800 Subject: [PATCH] Fix typo in MultipleOutputFormat In org.apache.hadoop.mapred.lib.MultipleOutputFormat, there is a typo for the java doc of getInputFileBasedOutputFileName method. "the outfile name based on a given anme and the input file name" should be "the outfile name based on a given name and the input file name" --- .../org/apache/hadoop/mapred/lib/MultipleOutputFormat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/lib/MultipleOutputFormat.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/lib/MultipleOutputFormat.java index 90ce57aa36cc8..125c7568c289a 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/lib/MultipleOutputFormat.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/lib/MultipleOutputFormat.java @@ -175,7 +175,7 @@ protected V generateActualValue(K key, V value) { /** - * Generate the outfile name based on a given anme and the input file name. If + * Generate the outfile name based on a given name and the input file name. If * the {@link JobContext#MAP_INPUT_FILE} does not exists (i.e. this is not for a map only job), * the given name is returned unchanged. If the config value for * "num.of.trailing.legs.to.use" is not set, or set 0 or negative, the given @@ -187,7 +187,7 @@ protected V generateActualValue(K key, V value) { * the job config * @param name * the output file name - * @return the outfile name based on a given anme and the input file name. + * @return the outfile name based on a given name and the input file name. */ protected String getInputFileBasedOutputFileName(JobConf job, String name) { String infilepath = job.get(MRJobConfig.MAP_INPUT_FILE);