Example #1
0
 /**
  * Get cache files set in the Configuration
  *
  * @param conf The configuration which contains the files
  * @return A URI array of the files set in the Configuration
  * @throws IOException
  */
 public static URI[] getSharedCacheFiles(Configuration conf) throws IOException {
   return StringUtils.stringToURI(conf.getStrings("mapred.cache.shared.files"));
 }
 /**
  * Get cache files set in the Configuration. Used by internal DistributedCache and MapReduce code.
  *
  * @param conf The configuration which contains the files
  * @return Am array of the files set in the Configuration
  * @throws IOException
  */
 public static URI[] getCacheFiles(Configuration conf) throws IOException {
   return StringUtils.stringToURI(conf.getStrings(CACHE_FILES));
 }
Example #3
0
 /**
  * Get cache archives set in the Configuration
  *
  * @param conf The configuration which contains the archives
  * @return A URI array of the caches set in the Configuration
  * @throws IOException
  */
 public static URI[] getCacheArchives(Configuration conf) throws IOException {
   return StringUtils.stringToURI(conf.getStrings("mapred.cache.archives"));
 }
 /**
  * Get cache archives set in the Configuration. Used by internal DistributedCache and MapReduce
  * code.
  *
  * @param conf The configuration which contains the archives
  * @return An array of the caches set in the Configuration
  * @throws IOException
  */
 public static URI[] getCacheArchives(Configuration conf) throws IOException {
   return StringUtils.stringToURI(conf.getStrings(CACHE_ARCHIVES));
 }