[
https://issues.apache.org/jira/browse/HADOOP-2385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557424#action_12557424
]
Konstantin Shvachko commented on HADOOP-2385:
---------------------------------------------
Why setters need to be static? What is wrong with this
{code}
class NameNodeConfig extends Configuration {
void setHttpBindAddres(String host, int port) {
set("dfs.http.bindAddress", host + ":" + port);
}
}
{code}
Why per-package, not per-component?
Serialization is common for all of them: it's the one defined in Configuration.
And the configuration files (hadooop-default.xml, hadoop-site.xml) are all the
same.
Just the classes are different because their accessors are different.
> Validate configuration parameters
> ---------------------------------
>
> Key: HADOOP-2385
> URL: https://issues.apache.org/jira/browse/HADOOP-2385
> Project: Hadoop
> Issue Type: Improvement
> Components: dfs
> Affects Versions: 0.16.0
> Reporter: Robert Chansler
>
> Configuration parameters should be fully validated before name nodes or data
> nodes begin service.
> Required parameters must be present.
> Required and optional parameters must have values of proper type and range.
> Undefined parameters must not be present.
> (I was recently observing some confusion whose root cause was a mis-spelled
> parameter.)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.