hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-9497) FileSystem.createFileSystem to convert class instantiation problems to meaningful IOEs
Date Tue, 23 Apr 2013 21:29:15 GMT
Steve Loughran created HADOOP-9497:
--------------------------------------

             Summary: FileSystem.createFileSystem to convert class instantiation problems
to meaningful IOEs
                 Key: HADOOP-9497
                 URL: https://issues.apache.org/jira/browse/HADOOP-9497
             Project: Hadoop Common
          Issue Type: Improvement
          Components: fs
            Reporter: Steve Loughran
            Priority: Minor


{{FileSystem.createFileSystem()}} uses {{ReflectionUtils()}} to instantiate a class -which
converts all instantiation-related problems to {{RuntimeException}}.

It would be better to
# Catch these in {{FileSystem.createFileSystem()}} and convert to an IOE with some useful
message, such as {{"Could not create a FS instance for hdfs://... and class org.apache.hadoop.fs.hdfs.DfsClient
: ClassNotFoundException}}.
# Maybe even allow for a conf option for filesystem implementations to provide an actionable
message, such as "make sure that hadoop-hdfs is on the classpath"

--
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

Mime
View raw message