You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2019/12/09 21:58:47 UTC

[GitHub] [hadoop-ozone] avijayanhwx opened a new pull request #331: HDDS-2188. Implement LocatedFileStatus & getFileBlockLocations to pro…

avijayanhwx opened a new pull request #331: HDDS-2188. Implement LocatedFileStatus & getFileBlockLocations to pro…
URL: https://github.com/apache/hadoop-ozone/pull/331
 
 
   …vide node/localization information to Yarn/Mapreduce.
   
   ## What changes were proposed in this pull request?
   For applications like Hive/MapReduce to take advantage of the data locality in Ozone, Ozone should return the location of the Ozone blocks. This is needed for better read performance for Hadoop Applications.
   {code}
           if (file instanceof LocatedFileStatus) {
             blkLocations = ((LocatedFileStatus) file).getBlockLocations();
           } else {
             blkLocations = fs.getFileBlockLocations(file, 0, length);
           }
   {code}
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-2188
   
   ## How was this patch tested?
   Manually tested.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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