Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.0.4, 1.1.1
-
None
-
None
Description
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).