/** * Adds the deprecated key to the global deprecation map. * It does not override any existing entries in the deprecation map. * This is to be used only by the developers in order to add deprecation of * keys, and attempts to call this method after loading resources once, * would lead to <tt>UnsupportedOperationException</tt> * * If a key is deprecated in favor of multiple keys, they are all treated as * aliases of each other, and setting any one of them resets all the others * to the new value. * * If you have multiple deprecation entries to add, it is more efficient to * use #addDeprecations(DeprecationDelta[] deltas) instead. * * @param key * @param newKeys * @param customMessage * @deprecated use {@link #addDeprecation(String key, String newKey, String customMessage)} instead */ @Deprecated public static void addDeprecation(String key, String[] newKeys, String customMessage) { addDeprecations(new DeprecationDelta[] { new DeprecationDelta(key, newKeys, customMessage) }); }
if (!newDeprecatedKeyMap.containsKey(delta.getKey())) { DeprecatedKeyInfo newKeyInfo = new DeprecatedKeyInfo(delta.getNewKeys(), delta.getCustomMessage()); newDeprecatedKeyMap.put(delta.key, newKeyInfo); for (String newKey : delta.getNewKeys()) { newReverseDeprecatedKeyMap.put(newKey, delta.key);
private static void addDeprecatedKeys() { Configuration.addDeprecations(new DeprecationDelta[] { new DeprecationDelta("mapred.temp.dir", MRConfig.TEMP_DIR), new DeprecationDelta("mapred.local.dir", MRConfig.LOCAL_DIR), new DeprecationDelta("mapred.cluster.map.memory.mb", MRConfig.MAPMEMORY_MB), new DeprecationDelta("mapred.cluster.reduce.memory.mb", MRConfig.REDUCEMEMORY_MB), new DeprecationDelta("mapred.acls.enabled", MRConfig.MR_ACLS_ENABLED), new DeprecationDelta("mapred.cluster.max.map.memory.mb", JTConfig.JT_MAX_MAPMEMORY_MB), new DeprecationDelta("mapred.cluster.max.reduce.memory.mb", JTConfig.JT_MAX_REDUCEMEMORY_MB), new DeprecationDelta("mapred.cluster.average.blacklist.threshold", JTConfig.JT_AVG_BLACKLIST_THRESHOLD), new DeprecationDelta("hadoop.job.history.location", JTConfig.JT_JOBHISTORY_LOCATION), new DeprecationDelta( "mapred.job.tracker.history.completed.location", JTConfig.JT_JOBHISTORY_COMPLETED_LOCATION), new DeprecationDelta("mapred.jobtracker.job.history.block.size", JTConfig.JT_JOBHISTORY_BLOCK_SIZE), new DeprecationDelta("mapred.job.tracker.jobhistory.lru.cache.size", JTConfig.JT_JOBHISTORY_CACHE_SIZE),
private static void addDeprecatedKeys() { Configuration.addDeprecations(new DeprecationDelta[] { new DeprecationDelta("mapred.temp.dir", MRConfig.TEMP_DIR), new DeprecationDelta("mapred.local.dir", MRConfig.LOCAL_DIR), new DeprecationDelta("mapred.cluster.map.memory.mb", MRConfig.MAPMEMORY_MB), new DeprecationDelta("mapred.cluster.reduce.memory.mb", MRConfig.REDUCEMEMORY_MB), new DeprecationDelta("mapred.acls.enabled", MRConfig.MR_ACLS_ENABLED), new DeprecationDelta("mapred.cluster.max.map.memory.mb", JTConfig.JT_MAX_MAPMEMORY_MB), new DeprecationDelta("mapred.cluster.max.reduce.memory.mb", JTConfig.JT_MAX_REDUCEMEMORY_MB), new DeprecationDelta("mapred.cluster.average.blacklist.threshold", JTConfig.JT_AVG_BLACKLIST_THRESHOLD), new DeprecationDelta("hadoop.job.history.location", JTConfig.JT_JOBHISTORY_LOCATION), new DeprecationDelta( "mapred.job.tracker.history.completed.location", JTConfig.JT_JOBHISTORY_COMPLETED_LOCATION), new DeprecationDelta("mapred.jobtracker.job.history.block.size", JTConfig.JT_JOBHISTORY_BLOCK_SIZE), new DeprecationDelta("mapred.job.tracker.jobhistory.lru.cache.size", JTConfig.JT_JOBHISTORY_CACHE_SIZE),
private static void addDeprecatedKeys() { Configuration.addDeprecations(new DeprecationDelta[] { new DeprecationDelta("mapred.temp.dir", MRConfig.TEMP_DIR), new DeprecationDelta("mapred.local.dir", MRConfig.LOCAL_DIR), new DeprecationDelta("mapred.cluster.map.memory.mb", MRConfig.MAPMEMORY_MB), new DeprecationDelta("mapred.cluster.reduce.memory.mb", MRConfig.REDUCEMEMORY_MB), new DeprecationDelta("mapred.acls.enabled", MRConfig.MR_ACLS_ENABLED), new DeprecationDelta("mapred.cluster.max.map.memory.mb", JTConfig.JT_MAX_MAPMEMORY_MB), new DeprecationDelta("mapred.cluster.max.reduce.memory.mb", JTConfig.JT_MAX_REDUCEMEMORY_MB), new DeprecationDelta("mapred.cluster.average.blacklist.threshold", JTConfig.JT_AVG_BLACKLIST_THRESHOLD), new DeprecationDelta("hadoop.job.history.location", JTConfig.JT_JOBHISTORY_LOCATION), new DeprecationDelta( "mapred.job.tracker.history.completed.location", JTConfig.JT_JOBHISTORY_COMPLETED_LOCATION), new DeprecationDelta("mapred.jobtracker.job.history.block.size", JTConfig.JT_JOBHISTORY_BLOCK_SIZE), new DeprecationDelta("mapred.job.tracker.jobhistory.lru.cache.size", JTConfig.JT_JOBHISTORY_CACHE_SIZE),
private static void addDeprecatedKeys() { Configuration.addDeprecations(new DeprecationDelta[] { new DeprecationDelta("mapred.temp.dir", MRConfig.TEMP_DIR), new DeprecationDelta("mapred.local.dir", MRConfig.LOCAL_DIR), new DeprecationDelta("mapred.cluster.map.memory.mb", MRConfig.MAPMEMORY_MB), new DeprecationDelta("mapred.cluster.reduce.memory.mb", MRConfig.REDUCEMEMORY_MB), new DeprecationDelta("mapred.acls.enabled", MRConfig.MR_ACLS_ENABLED), new DeprecationDelta("mapred.cluster.max.map.memory.mb", JTConfig.JT_MAX_MAPMEMORY_MB), new DeprecationDelta("mapred.cluster.max.reduce.memory.mb", JTConfig.JT_MAX_REDUCEMEMORY_MB), new DeprecationDelta("mapred.cluster.average.blacklist.threshold", JTConfig.JT_AVG_BLACKLIST_THRESHOLD), new DeprecationDelta("hadoop.job.history.location", JTConfig.JT_JOBHISTORY_LOCATION), new DeprecationDelta( "mapred.job.tracker.history.completed.location", JTConfig.JT_JOBHISTORY_COMPLETED_LOCATION), new DeprecationDelta("mapred.jobtracker.job.history.block.size", JTConfig.JT_JOBHISTORY_BLOCK_SIZE), new DeprecationDelta("mapred.job.tracker.jobhistory.lru.cache.size", JTConfig.JT_JOBHISTORY_CACHE_SIZE),
private static void addDeprecatedKeys() { Configuration.addDeprecations(new DeprecationDelta[]{ new DeprecationDelta("dfs.backup.address", DeprecatedKeys.DFS_NAMENODE_BACKUP_ADDRESS_KEY), new DeprecationDelta("dfs.backup.http.address", DeprecatedKeys.DFS_NAMENODE_BACKUP_HTTP_ADDRESS_KEY), new DeprecationDelta("dfs.balance.bandwidthPerSec", DeprecatedKeys.DFS_DATANODE_BALANCE_BANDWIDTHPERSEC_KEY), new DeprecationDelta("dfs.data.dir", DeprecatedKeys.DFS_DATANODE_DATA_DIR_KEY), new DeprecationDelta("dfs.http.address", HdfsClientConfigKeys.DFS_NAMENODE_HTTP_ADDRESS_KEY), new DeprecationDelta("dfs.https.address", HdfsClientConfigKeys.DFS_NAMENODE_HTTPS_ADDRESS_KEY), new DeprecationDelta("dfs.max.objects", DeprecatedKeys.DFS_NAMENODE_MAX_OBJECTS_KEY), new DeprecationDelta("dfs.name.dir", DeprecatedKeys.DFS_NAMENODE_NAME_DIR_KEY), new DeprecationDelta("dfs.name.dir.restore", DeprecatedKeys.DFS_NAMENODE_NAME_DIR_RESTORE_KEY), new DeprecationDelta("dfs.name.edits.dir", DeprecatedKeys.DFS_NAMENODE_EDITS_DIR_KEY), new DeprecationDelta("dfs.read.prefetch.size", HdfsClientConfigKeys.Read.PREFETCH_SIZE_KEY), new DeprecationDelta("dfs.safemode.extension", DeprecatedKeys.DFS_NAMENODE_SAFEMODE_EXTENSION_KEY), new DeprecationDelta("dfs.safemode.threshold.pct", DeprecatedKeys.DFS_NAMENODE_SAFEMODE_THRESHOLD_PCT_KEY), new DeprecationDelta("dfs.secondary.http.address", DeprecatedKeys.DFS_NAMENODE_SECONDARY_HTTP_ADDRESS_KEY),
private static void addDeprecatedKeys() { Configuration.addDeprecations(new DeprecationDelta[] { new DeprecationDelta("dfs.backup.address", DFSConfigKeys.DFS_NAMENODE_BACKUP_ADDRESS_KEY), new DeprecationDelta("dfs.backup.http.address", DFSConfigKeys.DFS_NAMENODE_BACKUP_HTTP_ADDRESS_KEY), new DeprecationDelta("dfs.balance.bandwidthPerSec", DFSConfigKeys.DFS_DATANODE_BALANCE_BANDWIDTHPERSEC_KEY), new DeprecationDelta("dfs.data.dir", DFSConfigKeys.DFS_DATANODE_DATA_DIR_KEY), new DeprecationDelta("dfs.http.address", DFSConfigKeys.DFS_NAMENODE_HTTP_ADDRESS_KEY), new DeprecationDelta("dfs.https.address", DFSConfigKeys.DFS_NAMENODE_HTTPS_ADDRESS_KEY), new DeprecationDelta("dfs.max.objects", DFSConfigKeys.DFS_NAMENODE_MAX_OBJECTS_KEY), new DeprecationDelta("dfs.name.dir", DFSConfigKeys.DFS_NAMENODE_NAME_DIR_KEY), new DeprecationDelta("dfs.name.dir.restore", DFSConfigKeys.DFS_NAMENODE_NAME_DIR_RESTORE_KEY), new DeprecationDelta("dfs.name.edits.dir", DFSConfigKeys.DFS_NAMENODE_EDITS_DIR_KEY), new DeprecationDelta("dfs.read.prefetch.size", DFSConfigKeys.DFS_CLIENT_READ_PREFETCH_SIZE_KEY), new DeprecationDelta("dfs.safemode.extension", DFSConfigKeys.DFS_NAMENODE_SAFEMODE_EXTENSION_KEY), new DeprecationDelta("dfs.safemode.threshold.pct", DFSConfigKeys.DFS_NAMENODE_SAFEMODE_THRESHOLD_PCT_KEY), new DeprecationDelta("dfs.secondary.http.address", DFSConfigKeys.DFS_NAMENODE_SECONDARY_HTTP_ADDRESS_KEY),
private static void addDeprecatedKeys() { Configuration.addDeprecations(new DeprecationDelta[] { new DeprecationDelta("dfs.backup.address", DFSConfigKeys.DFS_NAMENODE_BACKUP_ADDRESS_KEY), new DeprecationDelta("dfs.backup.http.address", DFSConfigKeys.DFS_NAMENODE_BACKUP_HTTP_ADDRESS_KEY), new DeprecationDelta("dfs.balance.bandwidthPerSec", DFSConfigKeys.DFS_DATANODE_BALANCE_BANDWIDTHPERSEC_KEY), new DeprecationDelta("dfs.data.dir", DFSConfigKeys.DFS_DATANODE_DATA_DIR_KEY), new DeprecationDelta("dfs.http.address", DFSConfigKeys.DFS_NAMENODE_HTTP_ADDRESS_KEY), new DeprecationDelta("dfs.https.address", DFSConfigKeys.DFS_NAMENODE_HTTPS_ADDRESS_KEY), new DeprecationDelta("dfs.max.objects", DFSConfigKeys.DFS_NAMENODE_MAX_OBJECTS_KEY), new DeprecationDelta("dfs.name.dir", DFSConfigKeys.DFS_NAMENODE_NAME_DIR_KEY), new DeprecationDelta("dfs.name.dir.restore", DFSConfigKeys.DFS_NAMENODE_NAME_DIR_RESTORE_KEY), new DeprecationDelta("dfs.name.edits.dir", DFSConfigKeys.DFS_NAMENODE_EDITS_DIR_KEY), new DeprecationDelta("dfs.read.prefetch.size", DFSConfigKeys.DFS_CLIENT_READ_PREFETCH_SIZE_KEY), new DeprecationDelta("dfs.safemode.extension", DFSConfigKeys.DFS_NAMENODE_SAFEMODE_EXTENSION_KEY), new DeprecationDelta("dfs.safemode.threshold.pct", DFSConfigKeys.DFS_NAMENODE_SAFEMODE_THRESHOLD_PCT_KEY), new DeprecationDelta("dfs.secondary.http.address", DFSConfigKeys.DFS_NAMENODE_SECONDARY_HTTP_ADDRESS_KEY),
private static void addDeprecatedKeys() { Configuration.addDeprecations(new DeprecationDelta[] { new DeprecationDelta("nfs3.server.port", NfsConfigKeys.DFS_NFS_SERVER_PORT_KEY), new DeprecationDelta("nfs3.mountd.port", NfsConfigKeys.DFS_NFS_MOUNTD_PORT_KEY), new DeprecationDelta("dfs.nfs.exports.cache.size", Nfs3Constant.NFS_EXPORTS_CACHE_SIZE_KEY), new DeprecationDelta("dfs.nfs.exports.cache.expirytime.millis", Nfs3Constant.NFS_EXPORTS_CACHE_EXPIRYTIME_MILLIS_KEY), new DeprecationDelta("hadoop.nfs.userupdate.milly", IdMappingConstant.USERGROUPID_UPDATE_MILLIS_KEY), new DeprecationDelta("nfs.usergroup.update.millis", IdMappingConstant.USERGROUPID_UPDATE_MILLIS_KEY), new DeprecationDelta("nfs.static.mapping.file", IdMappingConstant.STATIC_ID_MAPPING_FILE_KEY), new DeprecationDelta("dfs.nfs3.enableDump", NfsConfigKeys.DFS_NFS_FILE_DUMP_KEY), new DeprecationDelta("dfs.nfs3.dump.dir", NfsConfigKeys.DFS_NFS_FILE_DUMP_DIR_KEY), new DeprecationDelta("dfs.nfs3.max.open.files", NfsConfigKeys.DFS_NFS_MAX_OPEN_FILES_KEY), new DeprecationDelta("dfs.nfs3.stream.timeout", NfsConfigKeys.DFS_NFS_STREAM_TIMEOUT_KEY), new DeprecationDelta("dfs.nfs3.export.point", NfsConfigKeys.DFS_NFS_EXPORT_POINT_KEY), new DeprecationDelta("nfs.allow.insecure.ports", NfsConfigKeys.DFS_NFS_PORT_MONITORING_DISABLED_KEY), new DeprecationDelta("dfs.nfs.keytab.file", NfsConfigKeys.DFS_NFS_KEYTAB_FILE_KEY),
if (!newDeprecatedKeyMap.containsKey(delta.getKey())) { DeprecatedKeyInfo newKeyInfo = new DeprecatedKeyInfo(delta.getNewKeys(), delta.getCustomMessage()); newDeprecatedKeyMap.put(delta.key, newKeyInfo); for (String newKey : delta.getNewKeys()) { newReverseDeprecatedKeyMap.put(newKey, delta.key);
if (!newDeprecatedKeyMap.containsKey(delta.getKey())) { DeprecatedKeyInfo newKeyInfo = new DeprecatedKeyInfo(delta.getNewKeys(), delta.getCustomMessage()); newDeprecatedKeyMap.put(delta.key, newKeyInfo); for (String newKey : delta.getNewKeys()) { newReverseDeprecatedKeyMap.put(newKey, delta.key);
if (!newDeprecatedKeyMap.containsKey(delta.getKey())) { DeprecatedKeyInfo newKeyInfo = new DeprecatedKeyInfo(delta.getNewKeys(), delta.getCustomMessage()); newDeprecatedKeyMap.put(delta.key, newKeyInfo); for (String newKey : delta.getNewKeys()) { newReverseDeprecatedKeyMap.put(newKey, delta.key);
if (!newDeprecatedKeyMap.containsKey(delta.getKey())) { DeprecatedKeyInfo newKeyInfo = new DeprecatedKeyInfo(delta.getNewKeys(), delta.getCustomMessage()); newDeprecatedKeyMap.put(delta.key, newKeyInfo); for (String newKey : delta.getNewKeys()) { newReverseDeprecatedKeyMap.put(newKey, delta.key);
/** * Adds the deprecated key to the global deprecation map. * It does not override any existing entries in the deprecation map. * This is to be used only by the developers in order to add deprecation of * keys, and attempts to call this method after loading resources once, * would lead to <tt>UnsupportedOperationException</tt> * * If a key is deprecated in favor of multiple keys, they are all treated as * aliases of each other, and setting any one of them resets all the others * to the new value. * * If you have multiple deprecation entries to add, it is more efficient to * use #addDeprecations(DeprecationDelta[] deltas) instead. * * @param key * @param newKeys * @param customMessage * @deprecated use {@link #addDeprecation(String key, String newKey, String customMessage)} instead */ @Deprecated public static void addDeprecation(String key, String[] newKeys, String customMessage) { addDeprecations(new DeprecationDelta[] { new DeprecationDelta(key, newKeys, customMessage) }); }
/** * Adds the deprecated key to the global deprecation map. * It does not override any existing entries in the deprecation map. * This is to be used only by the developers in order to add deprecation of * keys, and attempts to call this method after loading resources once, * would lead to <tt>UnsupportedOperationException</tt> * * If a key is deprecated in favor of multiple keys, they are all treated as * aliases of each other, and setting any one of them resets all the others * to the new value. * * If you have multiple deprecation entries to add, it is more efficient to * use #addDeprecations(DeprecationDelta[] deltas) instead. * * @param key * @param newKeys * @param customMessage * @deprecated use {@link #addDeprecation(String key, String newKey, String customMessage)} instead */ @Deprecated public static void addDeprecation(String key, String[] newKeys, String customMessage) { addDeprecations(new DeprecationDelta[] { new DeprecationDelta(key, newKeys, customMessage) }); }
/** * Adds the deprecated key to the global deprecation map. * It does not override any existing entries in the deprecation map. * This is to be used only by the developers in order to add deprecation of * keys, and attempts to call this method after loading resources once, * would lead to <tt>UnsupportedOperationException</tt> * * If a key is deprecated in favor of multiple keys, they are all treated as * aliases of each other, and setting any one of them resets all the others * to the new value. * * If you have multiple deprecation entries to add, it is more efficient to * use #addDeprecations(DeprecationDelta[] deltas) instead. * * @param key * @param newKeys * @param customMessage * @deprecated use {@link #addDeprecation(String key, String newKey, String customMessage)} instead */ @Deprecated public static void addDeprecation(String key, String[] newKeys, String customMessage) { addDeprecations(new DeprecationDelta[] { new DeprecationDelta(key, newKeys, customMessage) }); }
private static void addDeprecatedKeys() { Configuration.addDeprecations(new DeprecationDelta[] { new DeprecationDelta("yarn.client.max-nodemanagers-proxies", NM_CLIENT_MAX_NM_PROXIES) }); Configuration.addDeprecations(new DeprecationDelta[] { new DeprecationDelta(RM_SYSTEM_METRICS_PUBLISHER_ENABLED, SYSTEM_METRICS_PUBLISHER_ENABLED), new DeprecationDelta(RM_ZK_ACL, CommonConfigurationKeys.ZK_ACL), new DeprecationDelta(RM_ZK_AUTH, CommonConfigurationKeys.ZK_AUTH), new DeprecationDelta(RM_ZK_ADDRESS, CommonConfigurationKeys.ZK_ADDRESS), new DeprecationDelta(RM_ZK_NUM_RETRIES, CommonConfigurationKeys.ZK_NUM_RETRIES), new DeprecationDelta(RM_ZK_TIMEOUT_MS, CommonConfigurationKeys.ZK_TIMEOUT_MS), new DeprecationDelta(RM_ZK_RETRY_INTERVAL_MS, CommonConfigurationKeys.ZK_RETRY_INTERVAL_MS), }); Configuration.addDeprecations(new DeprecationDelta[] { new DeprecationDelta("yarn.resourcemanager.display.per-user-apps", FILTER_ENTITY_LIST_BY_USER) }); }
/** * Adds the deprecated key to the global deprecation map. * It does not override any existing entries in the deprecation map. * This is to be used only by the developers in order to add deprecation of * keys, and attempts to call this method after loading resources once, * would lead to <tt>UnsupportedOperationException</tt> * * If a key is deprecated in favor of multiple keys, they are all treated as * aliases of each other, and setting any one of them resets all the others * to the new value. * * If you have multiple deprecation entries to add, it is more efficient to * use #addDeprecations(DeprecationDelta[] deltas) instead. * * @param key * @param newKeys * @param customMessage * @deprecated use {@link #addDeprecation(String key, String newKey, String customMessage)} instead */ @Deprecated public static void addDeprecation(String key, String[] newKeys, String customMessage) { addDeprecations(new DeprecationDelta[] { new DeprecationDelta(key, newKeys, customMessage) }); }
public static void addDeprecatedKeys() { Configuration.addDeprecations(new DeprecationDelta[]{ new DeprecationDelta("dfs.adls.oauth2.access.token.provider.type", AZURE_AD_TOKEN_PROVIDER_TYPE_KEY), new DeprecationDelta("dfs.adls.oauth2.client.id", AZURE_AD_CLIENT_ID_KEY), new DeprecationDelta("dfs.adls.oauth2.refresh.token", AZURE_AD_REFRESH_TOKEN_KEY), new DeprecationDelta("dfs.adls.oauth2.refresh.url", AZURE_AD_REFRESH_URL_KEY), new DeprecationDelta("dfs.adls.oauth2.credential", AZURE_AD_CLIENT_SECRET_KEY), new DeprecationDelta("dfs.adls.oauth2.access.token.provider", AZURE_AD_TOKEN_PROVIDER_CLASS_KEY), new DeprecationDelta("adl.dfs.enable.client.latency.tracker", LATENCY_TRACKER_KEY) }); Configuration.reloadExistingConfigurations(); }