You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Weiwei Yang (JIRA)" <ji...@apache.org> on 2017/05/25 05:37:04 UTC

[jira] [Comment Edited] (HDFS-11779) Ozone: KSM: add listBuckets

    [ 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 5:36 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<Bucket> 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--], it 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