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