Description
Currently we have code blocks like the following in lots of places:
static{ Configuration.addDefaultResource("hdfs-default.xml"); Configuration.addDefaultResource("hdfs-site.xml"); }
This is dangerous since, if we don't remember to also classload HdfsConfiguration, the config key deprecations won't work. We should add a method like HdfsConfiguration.init() which would load the default resources as well as ensure that deprecation gets initialized properly.
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-7287 Configuration deprecation mechanism doesn't work properly for GenericOptionsParser/Tools
- Closed