hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Elliott (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-4662) setQuietMode(true) causes configuration to fail when hadoop-site.xml is added via addResource
Date Fri, 14 Nov 2008 19:15:44 GMT
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.


Mime
View raw message