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 65d43292f9..90f864917e 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 @@ * 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 0c43633c1f..532e3ad3d7 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 @@ * 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}: