Example usage for org.apache.hadoop.conf Configuration addDeprecation

List of usage examples for org.apache.hadoop.conf Configuration addDeprecation

Introduction

In this page you can find the example usage for org.apache.hadoop.conf Configuration addDeprecation.

Prototype

public static void addDeprecation(String key, String newKey) 

Source Link

Document

Adds the deprecated key to the global deprecation map when no custom message is provided.

Usage

From source file:org.apache.slider.common.tools.ConfigHelper.java

License:Apache License

/**
 * Register anything we consider deprecated
 *//*w ww. ja v  a 2  s .  c om*/
public static void registerDeprecatedConfigItems() {
    Configuration.addDeprecation(SliderXmlConfKeys.REGISTRY_ZK_QUORUM,
            RegistryConstants.KEY_REGISTRY_ZK_QUORUM);
    Configuration.addDeprecation(SliderXmlConfKeys.REGISTRY_PATH, RegistryConstants.KEY_REGISTRY_ZK_ROOT);

}

From source file:org.apache.tez.mapreduce.hadoop.DeprecatedKeys.java

License:Apache License

@SuppressWarnings("unused")
private static void _(String mrKey, String tezKey) {
    Configuration.addDeprecation(mrKey, tezKey);
}

From source file:org.janusgraph.hadoop.compat.h2.ImmutableConfiguration.java

License:Apache License

@Deprecated
public static void addDeprecation(String key, String[] newKeys) {
    Configuration.addDeprecation(key, newKeys);
}

From source file:org.janusgraph.hadoop.compat.h2.ImmutableConfiguration.java

License:Apache License

public static void addDeprecation(String key, String newKey) {
    Configuration.addDeprecation(key, newKey);
}