[
https://issues.apache.org/jira/browse/HADOOP-4662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Allen Wittenauer updated HADOOP-4662:
-------------------------------------
Labels: newbie (was: )
> setQuietMode(true) causes configuration to fail when hadoop-site.xml is added
> via addResource
> ---------------------------------------------------------------------------------------------
>
> Key: HADOOP-4662
> URL: https://issues.apache.org/jira/browse/HADOOP-4662
> Project: Hadoop Common
> Issue Type: Bug
> Components: conf
> Reporter: Tyler Elliott
> Priority: Minor
> Labels: newbie
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> When enabling quiet mode in the configuration and loading hadoop-site.xml by
> adding it as a resource instead of having it in the default location...
> Configuration conf = new Configuration();
> conf.setQuietMode(false);
> conf.addResource(new Path("/somewhere/on/my/computer/hadoop-site.xml"));
> FileSystem fs = FileSystem.get(conf);
> A runtime exception is thrown to show that the default hadoop-site.xml could
> not be found. In non-quiet more it just returns. (Configuration:902). The
> information should be logged, not generate an exception. The caller does not
> catch this exception, so added hadoop-site.xml never actually gets parsed and
> added.
--
This message was sent by Atlassian JIRA
(v6.2#6252)