getWithDeprecatedCheck(org.apache.hadoop.conf.Configuration conf,
String newName,
String oldName,
boolean defaultValue)
Fetches a property using both a deprecated name and the new name.
getWithDeprecatedCheck(org.apache.hadoop.conf.Configuration conf,
String newName,
String oldName,
String defaultValue)
Fetches a property using both a deprecated name and the new name.
Fetches a property using both a deprecated name and the new name. The deprecated property
has precedence over the new name. If the deprecated name is used a warning is written to
the log.
Parameters:
conf - configuration object.
newName - new property name.
oldName - deprecated property name.
defaultValue - default value.
Returns:
the property value, or the default value if not found under the deprecated name and the new name.
Fetches a property using both a deprecated name and the new name. The deprecated property
has precedence over the new name. If the deprecated name is used a warning is written to
the log.
Parameters:
conf - configuration object.
newName - new property name.
oldName - deprecated property name.
defaultValue - default value.
Returns:
the property value, or the default value if not found under the deprecated name and the new name.