hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Weiwei Yang (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HDFS-11779) Ozone: KSM: add listBuckets
Date Thu, 25 May 2017 06:10:04 GMT

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

Weiwei Yang edited comment on HDFS-11779 at 5/25/17 6:09 AM:
-------------------------------------------------------------

I studied amazone s3 a bit, according to s3 document [http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/AmazonS3Client.html#listBuckets--],
the {{listBuckets}} API simply returns a list of buckets.

{code}
public List<Bucket> listBuckets() throws SdkClientException, AmazonServiceException
{code}

Do we really to support pagination for buckets? There won't be too many buckets in a volume,
I propose to use similar signature as s3.

{code}
/**
   * Returns a list of all buckets in the given volume.
   *
   * @param volumeName name of the volume.
   * @return a list of buckets.
   * @throws IOException
   */
public List<KsmBucketInfo> listBuckets(String volumeName) throws IOException;
{code}

[~xyao], [~anu], does this make sense to you?

Thank you.


was (Author: cheersyang):
I studied amazone s3 a bit, according to s3 document [http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/AmazonS3Client.html#listBuckets--],
the {{listBuckets}} API simply returns a list of buckets.

{code}
public List<Bucket> listBuckets() throws SdkClientException, AmazonServiceException
{code}

Do we really to support pagination for buckets? There won't be too many buckets in a volume,
I propose to use similar signature as s3.

{code}
/**
   * Returns a list of all buckets in the given volume.
   *
   * @param volumeName name of the volume.
   * @return a list of buckets.
   * @throws IOException
   */
public List<Bucket> listBuckets(String volumeName) throws IOException;
{code}

[~xyao], [~anu], does this make sense to you?

Thank you.

> Ozone: KSM: add listBuckets
> ---------------------------
>
>                 Key: HDFS-11779
>                 URL: https://issues.apache.org/jira/browse/HDFS-11779
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>    Affects Versions: HDFS-7240
>            Reporter: Anu Engineer
>            Assignee: Weiwei Yang
>
> Lists buckets of a given volume. Similar to listVolumes, paging supported via prevKey,
prefix and maxKeys.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message