You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Mukul Kumar Singh (Jira)" <ji...@apache.org> on 2019/09/26 15:23:00 UTC
[jira] [Created] (HDDS-2188) Implement LocatedFileStatus &
getFileBlockLocations to provide node/localization information to
Yarn/Mapreduce
Mukul Kumar Singh created HDDS-2188:
---------------------------------------
Summary: 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: Mukul Kumar Singh
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-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org