hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shaik Idris Ali (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-13516) Listing an empty s3a NON root directory throws FileNotFound.
Date Thu, 18 Aug 2016 15:36:21 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-13516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15426651#comment-15426651
] 

Shaik Idris Ali commented on HADOOP-13516:
------------------------------------------

HADOOP-11694 fixes only the case of empty root directory, however listing a empty non-root
directory still throws FileNonFoundException.
{code}
key = maybeAddTrailingSlash(key); //If this line is commented, then objects.getCommonPrefixes().size
is greater than 1 for valid empty directories. with nextMarker like dir/empty-ids-1449644026143/
      ListObjectsRequest request = new ListObjectsRequest();
      request.setBucketName(bucket);
      request.setPrefix(key);
      request.setDelimiter("/");
      request.setMaxKeys(1);
{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: Sub-task
>          Components: fs/s3
>    Affects Versions: 2.7.0
>            Reporter: Shaik Idris Ali
>            Assignee: Lei (Eddy) Xu
>            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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message