hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-4905) static initializers for default config files duplicate code
Date Wed, 17 Dec 2008 17:23:44 GMT

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

Doug Cutting commented on HADOOP-4905:
--------------------------------------

We should replace code like the following
{code}
static {
  Configuration.addDefaultResource("hdfs-default.xml");
  Configuration.addDefaultResource("hdfs-site.xml");
}
{code}
with something like:
{code}
static { HdfsConfig.initialize(); }
{code}


> static initializers for default config files duplicate code
> -----------------------------------------------------------
>
>                 Key: HADOOP-4905
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4905
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: conf
>    Affects Versions: 0.20.0
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>            Priority: Minor
>
> 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message