From 34a931c0fa5853fbcaadf0211d6bbee881715748 Mon Sep 17 00:00:00 2001 From: Naganarasimha Date: Mon, 20 Mar 2017 00:04:23 +0530 Subject: [PATCH] MAPREDUCE-6865. Fix typo in javadoc for DistributedCache. Contributed by Attila Sasvari. --- .../org/apache/hadoop/filecache/DistributedCache.java | 8 ++++---- .../hadoop/mapreduce/filecache/DistributedCache.java | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/filecache/DistributedCache.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/filecache/DistributedCache.java index 65d43292f93..90f864917e1 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/filecache/DistributedCache.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/filecache/DistributedCache.java @@ -83,11 +83,11 @@ import org.apache.hadoop.mapreduce.MRJobConfig; * JobConf job = new JobConf(); * DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"), * job); - * DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job); + * DistributedCache.addCacheArchive(new URI("/myapp/map.zip"), job); * DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job); - * DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar", job); - * DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz", job); - * DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz", job); + * DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar"), job); + * DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz"), job); + * DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz"), job); * * 3. Use the cached files in the {@link org.apache.hadoop.mapred.Mapper} * or {@link org.apache.hadoop.mapred.Reducer}: diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/filecache/DistributedCache.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/filecache/DistributedCache.java index 0c43633c1f9..532e3ad3d7c 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/filecache/DistributedCache.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/filecache/DistributedCache.java @@ -85,11 +85,11 @@ import java.net.URI; * JobConf job = new JobConf(); * DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"), * job); - * DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job); + * DistributedCache.addCacheArchive(new URI("/myapp/map.zip"), job); * DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job); - * DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar", job); - * DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz", job); - * DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz", job); + * DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar"), job); + * DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz"), job); + * DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz"), job); * * 3. Use the cached files in the {@link org.apache.hadoop.mapred.Mapper} * or {@link org.apache.hadoop.mapred.Reducer}: