Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13020

dfs -ls s3a root should not return error when bucket is empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Duplicate
    • 2.6.0
    • None
    • fs/s3

    Description

      Do not expect hdfs dfs -ls s3a root to return error "No such file or directory" when the s3 bucket is empty. Expect no error and empty output, just like listing an empty directory.

      $ hdfs dfs -ls s3a://jz-hdfs1/
      Found 1 items
      drwxrwxrwx   -          0 1969-12-31 16:00 s3a://jz-hdfs1/tmp
      $ hdfs dfs -rmdir s3a://jz-hdfs1/tmp
      
      $ hdfs dfs -ls s3a://jz-hdfs1/
      ls: `s3a://jz-hdfs1/': No such file or directory
      

      Attachments

        Issue Links

          Activity

            People

              jzhuge John Zhuge
              jzhuge John Zhuge
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: