hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] Created: (HDFS-1098) Fix Javadoc for DistributedCache usage
Date Thu, 15 Apr 2010 21:06:48 GMT
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),
                                                  false, Long.parseLong(
                                                  new Path(workDir.
          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


View raw message