code: public static void setCacheArchives(URI[] archives, Configuration conf) {
      String sarchives = StringUtils.uriToString(archives);
      conf.set("mapred.cache.archives", sarchives);
    }
docs: Set the configuration with the given set of archives
  @param archives The list of archives that need to be localized
  @param conf Configuration which will be changed