/** * * @param conf * @param mountTableName * @param src * @param settings * @param targets */ public static void addLinkNfly(Configuration conf, String mountTableName, String src, String settings, final URI ... targets) { settings = settings == null ? "minReplication=2,repairOnRead=true" : settings; conf.set(getConfigViewFsPrefix(mountTableName) + "." + Constants.CONFIG_VIEWFS_LINK_NFLY + "." + settings + "." + src, StringUtils.uriToString(targets)); }
/** * 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 */ public static void setCacheArchives(URI[] archives, Configuration conf) { String sarchives = StringUtils.uriToString(archives); conf.set("mapred.cache.archives", sarchives); }
/** * Set the configuration with the given set of files * @param files The list of files that need to be localized * @param conf Configuration which will be changed */ public static void setCacheFiles(URI[] files, Configuration conf) { String sfiles = StringUtils.uriToString(files); conf.set("mapred.cache.files", sfiles); }
/** * 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 */ public static void setCacheArchives(URI[] archives, Configuration conf) { String sarchives = StringUtils.uriToString(archives); conf.set("mapred.cache.archives", sarchives); }
/** * Set the configuration with the given set of files * @param files The list of files that need to be localized * @param conf Configuration which will be changed */ public static void setCacheFiles(URI[] files, Configuration conf) { String sfiles = StringUtils.uriToString(files); conf.set("mapred.cache.files", sfiles); }
/** * Set the configuration with the given set of files. Intended to be * used by user code. * @param files The list of files that need to be localized * @param conf Configuration which will be changed * @deprecated Use {@link Job#setCacheFiles(URI[])} instead */ @Deprecated public static void setCacheFiles(URI[] files, Configuration conf) { String sfiles = StringUtils.uriToString(files); conf.set(MRJobConfig.CACHE_FILES, sfiles); }
/** * Set the configuration with the given set of archives. Intended * to be used by user code. * @param archives The list of archives that need to be localized * @param conf Configuration which will be changed * @deprecated Use {@link Job#setCacheArchives(URI[])} instead */ @Deprecated public static void setCacheArchives(URI[] archives, Configuration conf) { String sarchives = StringUtils.uriToString(archives); conf.set(MRJobConfig.CACHE_ARCHIVES, sarchives); }
/** * Set the configuration with the given set of archives. Intended * to be used by user code. * @param archives The list of archives that need to be localized * @param conf Configuration which will be changed * @deprecated Use {@link Job#setCacheArchives(URI[])} instead */ @Deprecated public static void setCacheArchives(URI[] archives, Configuration conf) { String sarchives = StringUtils.uriToString(archives); conf.set(MRJobConfig.CACHE_ARCHIVES, sarchives); }
/** * Set the configuration with the given set of archives. Intended * to be used by user code. * @param archives The list of archives that need to be localized * @param conf Configuration which will be changed * @deprecated Use {@link Job#setCacheArchives(URI[])} instead */ @Deprecated public static void setCacheArchives(URI[] archives, Configuration conf) { String sarchives = StringUtils.uriToString(archives); conf.set(MRJobConfig.CACHE_ARCHIVES, sarchives); }
/** * Set the configuration with the given set of files. Intended to be * used by user code. * @param files The list of files that need to be localized * @param conf Configuration which will be changed * @deprecated Use {@link Job#setCacheFiles(URI[])} instead */ @Deprecated public static void setCacheFiles(URI[] files, Configuration conf) { String sfiles = StringUtils.uriToString(files); conf.set(MRJobConfig.CACHE_FILES, sfiles); }
/** * Set the configuration with the given set of archives. Intended * to be used by user code. * @param archives The list of archives that need to be localized * @param conf Configuration which will be changed * @deprecated Use {@link Job#setCacheArchives(URI[])} instead */ @Deprecated public static void setCacheArchives(URI[] archives, Configuration conf) { String sarchives = StringUtils.uriToString(archives); conf.set(MRJobConfig.CACHE_ARCHIVES, sarchives); }
/** * Set the configuration with the given set of files. Intended to be * used by user code. * @param files The list of files that need to be localized * @param conf Configuration which will be changed * @deprecated Use {@link Job#setCacheFiles(URI[])} instead */ @Deprecated public static void setCacheFiles(URI[] files, Configuration conf) { String sfiles = StringUtils.uriToString(files); conf.set(MRJobConfig.CACHE_FILES, sfiles); }
/** * Set the configuration with the given set of archives. Intended * to be used by user code. * @param archives The list of archives that need to be localized * @param conf Configuration which will be changed * @deprecated Use {@link Job#setCacheArchives(URI[])} instead */ @Deprecated public static void setCacheArchives(URI[] archives, Configuration conf) { String sarchives = StringUtils.uriToString(archives); conf.set(MRJobConfig.CACHE_ARCHIVES, sarchives); }
/** * Set the configuration with the given set of files. Intended to be * used by user code. * @param files The list of files that need to be localized * @param conf Configuration which will be changed * @deprecated Use {@link Job#setCacheFiles(URI[])} instead */ @Deprecated public static void setCacheFiles(URI[] files, Configuration conf) { String sfiles = StringUtils.uriToString(files); conf.set(MRJobConfig.CACHE_FILES, sfiles); }
/** * Set the configuration with the given set of files. Intended to be * used by user code. * @param files The list of files that need to be localized * @param conf Configuration which will be changed * @deprecated Use {@link Job#setCacheFiles(URI[])} instead */ @Deprecated public static void setCacheFiles(URI[] files, Configuration conf) { String sfiles = StringUtils.uriToString(files); conf.set(MRJobConfig.CACHE_FILES, sfiles); }