[ 
https://issues.apache.org/jira/browse/HADOOP-7077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981641#action_12981641
 ] 

Goutham Pantaikuni commented on HADOOP-7077:
--------------------------------------------

Thanks for the quick reply. I'll go ahead and work on a patch for this bug 

> Use Java's ServiceLoader to add default resources to Configuration
> ------------------------------------------------------------------
>
>                 Key: HADOOP-7077
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7077
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: conf
>            Reporter: Tom White
>
> Currently each class with a main() method (in HDFS and MapReduce) calls 
> Configuration.addDefaultResource() to add the names of resource files to load 
> (e.g. see DataNode and NameNode which both add hdfs-default.xml and 
> hdfs-site.xml). We could reduce the code duplication by allowing the use of 
> [java.util.ServiceLoader|http://download.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html]
>  to do the initialization.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to