Brandon Li created HADOOP-11715:
-----------------------------------

             Summary: azureFs::getFileStatus doesn't check the file system 
scheme and thus could throw a misleading exception. 
                 Key: HADOOP-11715
                 URL: https://issues.apache.org/jira/browse/HADOOP-11715
             Project: Hadoop Common
          Issue Type: Bug
          Components: fs
    Affects Versions: 2.7.0
            Reporter: Brandon Li


 azureFs::getFileStatus doesn't check the file system scheme and thus could 
throw a misleading exception. 
For example, it complains filenotfound instead of wrong-fs for an hdfs path:


Caused by: java.io.FileNotFoundException: 
hdfs://headnode0:9000/hive/scratch/hadoopqa/a7d34a22-57eb-4678-84b4-43d84027d45f/hive_2015-03-02_23-13-04_713_5722627238053417441-1/hadoopqa/_tez_scratch_dir/_tez_scratch_dir/split_Map_1/job.split:
 No such file or directory.
        at 
org.apache.hadoop.fs.azure.NativeAzureFileSystem.getFileStatus(NativeAzureFileSystem.java:1625)




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to