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 Core
          Issue Type: Bug
          Components: conf
            Reporter: Tyler Elliott
            Priority: Minor


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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to