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
- duplicates
-
HADOOP-11918 Listing an empty s3a root directory throws FileNotFound.
- Resolved