[ https://issues.apache.org/jira/browse/HDFS-12063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16071154#comment-16071154 ]
Yiqun Lin commented on HDFS-12063: ---------------------------------- Hi [~anu], I did a simple test in my local. I wrote a unit test that using oz shell command to put 2k files in old/new put key way. And calculate the total elapsed time of these two ways. I found the new way is faster than the old way a little. The old way costs 136s while new way costs 116s. But I think if the cluster is busy enough, the new way will make more sense. > 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 > Attachments: HDFS-12063-HDFS-7240.001.patch, > HDFS-12063-HDFS-7240.002.patch > > > 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-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org