Travis Crawford created HCATALOG-597:
----------------------------------------
Summary: improve AppConfig so values can only be retrieved one way
Key: HCATALOG-597
URL: https://issues.apache.org/jira/browse/HCATALOG-597
Project: HCatalog
Issue Type: Improvement
Components: webhcat-svr
Reporter: Travis Crawford
webhcat server makes its configuration available via
[AppConfig|http://svn.apache.org/repos/asf/incubator/hcatalog/trunk/webhcat/svr/src/main/java/org/apache/hcatalog/templeton/AppConfig.java],
which extends a hadoop {{Configuration}}.
In HCATALOG-587 there was some confusion about how this class is intended to be
used. Consider the following:
{code}
// in AppConfig
public static final String HADOOP_NAME = "templeton.hadoop";
public String clusterHadoop() { return get(HADOOP_NAME); }
// inherited from Configuration
public String get(String name);
{code}
Note how there are two ways to get a value from the configuration:
{code}
appConfig.get(AppConfig.HADOOP_NAME);
appConfig.clusterHadoop();
{code}
{{AppConfig}} should be updated so there's just one way to access values from
the configuration.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira