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 "Yiqun Lin (JIRA)" <ji...@apache.org> on 2017/06/29 03:23:00 UTC

[jira] [Comment Edited] (HDFS-12063) Ozone: Ozone shell: Multiple RPC calls for put/get key

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

Yiqun Lin edited comment on HDFS-12063 at 6/29/17 3:22 AM:
-----------------------------------------------------------

Thanks for reporting this, [~nanda_in]! It will be nice to  optimize this. It will be better to add a new method with both bucket name and key name param in OzoneVolume like {{getKey(String bucketName, String keyName)}} and this will reduce the RPC calls made. Will attach the patch soon.


was (Author: linyiqun):
Thanks for reporting this, [~nanda_in]! It will be nice to  optimize this. It will be better to add a new method with both bucket name and key name param in OzoneVolume like and this will reduce the RPC calls made. Will attach the patch soon.

> Ozone: Ozone shell: Multiple RPC calls for put/get key
> ------------------------------------------------------
>
>                 Key: HDFS-12063
>                 URL: https://issues.apache.org/jira/browse/HDFS-12063
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Nandakumar
>            Assignee: Yiqun Lin
>
> With current implementation multiple RPC calls are made for each put/get key ozone shell call
> {code:title=org.apache.hadoop.ozone.web.ozShell.keys.PutKeyHandler#execute}
>     OzoneVolume vol = client.getVolume(volumeName);
>     OzoneBucket bucket = vol.getBucket(bucketName);
>     bucket.putKey(keyName, dataFile);
> {code}
> {code:title=org.apache.hadoop.ozone.web.ozShell.keys.GetKeyHandler#execute}
>     OzoneVolume vol = client.getVolume(volumeName);
>     OzoneBucket bucket = vol.getBucket(bucketName);
>     bucket.getKey(keyName, dataFilePath);
> {code}
> This can be optimized.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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