[
https://issues.apache.org/jira/browse/HADOOP-13516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15426976#comment-15426976
]
Chris Nauroth commented on HADOOP-13516:
----------------------------------------
I am unable to repro this with a fresh trunk build. [~shaik.idris], I noticed
what appears to be a typo in your example: "emtyp" instead of "empty". Is it
possible that you ran the ls command on a directory that doesn't exist?
{code}
> hadoop version
Hadoop 3.0.0-alpha2-SNAPSHOT
Source code repository https://git-wip-us.apache.org/repos/asf/hadoop.git -r
ae4db2544346370404826d5b55b2678f5f92fe1f
Compiled by chris on 2016-08-18T17:56Z
Compiled with protoc 2.5.0
>From source with checksum 4de746edbf65719fec787db317e866a
This command was run using
/Users/chris/hadoop-deploy-trunk/hadoop-3.0.0-alpha2-SNAPSHOT/share/hadoop/common/hadoop-common-3.0.0-alpha2-SNAPSHOT.jar
> hadoop fs -ls s3a://cnauroth-test-aws-s3a/
> hadoop fs -mkdir s3a://cnauroth-test-aws-s3a/test-empty-dir
[chris@Chriss-MacBook-Pro-2:ttys002] hadoop-deploy-trunk
> hadoop fs -ls s3a://cnauroth-test-aws-s3a/
Found 1 items
drwxrwxrwx - chris 0 2016-08-18 11:44
s3a://cnauroth-test-aws-s3a/test-empty-dir
> hadoop fs -ls s3a://cnauroth-test-aws-s3a/test-empty-dir
> hadoop fs -ls s3a://cnauroth-test-aws-s3a/test-emtpy-dir
ls: `s3a://cnauroth-test-aws-s3a/test-emtpy-dir': No such file or directory
{code}
> Listing an empty s3a NON root directory throws FileNotFound.
> ------------------------------------------------------------
>
> Key: HADOOP-13516
> URL: https://issues.apache.org/jira/browse/HADOOP-13516
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs/s3
> Affects Versions: 2.7.0
> Reporter: Shaik Idris Ali
> Assignee: Steve Loughran
> Priority: Minor
> Fix For: 2.8.0
>
>
> With an empty s3 bucket and run
> {code}
> $ hadoop fs -D... -ls s3a://hdfs-s3a-test/emptyDirectory
> 15/05/04 15:21:34 WARN util.NativeCodeLoader: Unable to load native-hadoop
> library for your platform... using builtin-java classes where applicable
> ls: `s3a://hdfs-s3a-test/emtpyDirectory': No such file or directory
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]