Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4332

NativeS3FileSystem throws exception for root ( / )

    XMLWordPrintableJSON

Details

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            costin.leau Costin Leau
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: