[ https://issues.apache.org/jira/browse/HDFS-11779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16024219#comment-16024219 ]
Weiwei Yang commented on HDFS-11779: ------------------------------------ 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-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org