hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uma Maheswara Rao G (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-4905) static initializers for default config files duplicate code
Date Tue, 20 Sep 2011 18:25:09 GMT

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

Uma Maheswara Rao G commented on HADOOP-4905:
---------------------------------------------

This is already handled in trunk!

But in 20 branches, we don't have the HdfsConfiguration wrapper upon Configuration class to
move hdfs specific static block (configs) to Configuration classes. 

If we want to port this to 20 branch we may need to wrapper upon configuration class first,
then we can call init in all the places, instead of duplicating that.
@ Raghu / Doug, are you expecting the fix for 20 branch also?

> static initializers for default config files duplicate code
> -----------------------------------------------------------
>
>                 Key: HADOOP-4905
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4905
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: conf
>    Affects Versions: 0.20.0
>            Reporter: Doug Cutting
>            Priority: Minor
>              Labels: newbie
>
> The default config files are loaded by static initializers.  The code in these initializers
is two lines that contains string literals.  This is fragile and duplicated code.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message