[ 
https://issues.apache.org/jira/browse/HDDS-2188?focusedWorklogId=333509&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-333509
 ]

ASF GitHub Bot logged work on HDDS-2188:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Oct/19 15:17
            Start Date: 24/Oct/19 15:17
    Worklog Time Spent: 10m 
      Work Description: steveloughran commented on pull request #1631: 
HDDS-2188 : Implement LocatedFileStatus & getFileBlockLocations to pr…
URL: https://github.com/apache/hadoop/pull/1631#discussion_r338635266
 
 

 ##########
 File path: 
hadoop-ozone/ozonefs/src/main/java/org/apache/hadoop/fs/ozone/BasicOzoneFileSystem.java
 ##########
 @@ -626,6 +640,16 @@ public FileStatus getFileStatus(Path f) throws 
IOException {
     return fileStatus;
   }
 
+  public BlockLocation[] getFileBlockLocations(FileStatus fileStatus,
 
 Review comment:
   add @override
 
----------------------------------------------------------------
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:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 333509)
    Time Spent: 1h 10m  (was: 1h)

> Implement LocatedFileStatus & getFileBlockLocations to provide 
> node/localization information to Yarn/Mapreduce
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: HDDS-2188
>                 URL: https://issues.apache.org/jira/browse/HDDS-2188
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone Filesystem
>    Affects Versions: 0.5.0
>            Reporter: Mukul Kumar Singh
>            Assignee: Aravindan Vijayan
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> 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}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to