Costin Leau created HDFS-4332:
---------------------------------
Summary: 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.1.1, 1.0.4
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:
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)
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