hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daryn Sharp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-4332) NativeS3FileSystem throws exception for root ( / )
Date Thu, 31 Jan 2013 16:15:13 GMT

    [ https://issues.apache.org/jira/browse/HDFS-4332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13567757#comment-13567757
] 

Daryn Sharp commented on HDFS-4332:
-----------------------------------

I'm pretty sure it's a {{Path}} bug.  Things like cwd, and I think basename of the root dir,
will return an empty string. If you try to construct another path based on those paths, it
will encounter this type of exception.
                
> NativeS3FileSystem throws exception for root ( / )
> --------------------------------------------------
>
>                 Key: HDFS-4332
>                 URL: https://issues.apache.org/jira/browse/HDFS-4332
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>    Affects Versions: 1.0.4, 1.1.1
>            Reporter: Costin Leau
>
> The Native S3 file system cannot list paths from the root.
> NativeS3FileSystem.listStatus("/") throws IllegalArgumentException in both Hadoop 1.0.4
and 1.1.1:
> {code}
> java.lang.IllegalArgumentException: Can not create a Path from an empty
> string
> 	at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
> 	at 
> org.apache.hadoop.fs.s3native.NativeS3FileSystem.listStatus(NativeS3FileSy
> stem.java:437)
> {code}
> where the fs.default.name is any of s3n://bucket/, s3n://bucket ,
> s3n://bucket/foder or s3n://bucket/folder/
> I tried all file-system variants (just the bucket, w/ and w/o trailing
> slash, bucket + folder, w/ or w/o trailing slash).

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