Fix Javadoc for DistributedCache usage --------------------------------------
Key: HDFS-1098 URL: https://issues.apache.org/jira/browse/HDFS-1098 Project: Hadoop HDFS Issue Type: Bug Components: documentation Affects Versions: 0.20.2 Reporter: Ted Yu Fix For: 0.20.3 The Javadoc for using DistributedCache isn't up-to-date with code: * JobConf job = new JobConf(); * DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"), * job); This is the new API: public static void addCacheFile(URI uri, Configuration conf) { Javadoc should (partially) reflect the actual usage from TaskRunner: p[i] = DistributedCache.getLocalCache(files[i], conf, new Path(baseDir), fileStatus, false, Long.parseLong( fileTimestamps[i]), new Path(workDir. getAbsolutePath()), false); } DistributedCache.setLocalFiles(conf, stringifyPathArray(p)); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira