[
https://issues.apache.org/jira/browse/HADOOP-2027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
lohit vijayarenu updated HADOOP-2027:
-------------------------------------
Attachment: HADOOP-2027-9.patch
Dhurba suggested it would be good to have information about host:port which is
already provided by namenode call.
So i have one more API getNames() which is similar to DatanodeID's getName,
this returns hostname:port and getHosts() returns hostnames as earlier. He
suggest this is useful when we consider running 2 datanodes on same node.
Attached is the patch which address this.
> FileSystem should provide byte ranges for file locations
> --------------------------------------------------------
>
> Key: HADOOP-2027
> URL: https://issues.apache.org/jira/browse/HADOOP-2027
> Project: Hadoop Core
> Issue Type: Bug
> Components: fs
> Reporter: Owen O'Malley
> Assignee: lohit vijayarenu
> Attachments: HADOOP-2027-1.patch, HADOOP-2027-2.patch,
> HADOOP-2027-3.patch, HADOOP-2027-4.patch, HADOOP-2027-5.patch,
> HADOOP-2027-6.patch, HADOOP-2027-7.patch, HADOOP-2027-8.patch,
> HADOOP-2027-9.patch
>
>
> FileSystem's getFileCacheHints should be replaced with something more useful.
> I'd suggest replacing getFileCacheHints with a new method:
> {code}
> BlockLocation[] getFileLocations(Path file, long offset, long range) throws
> IOException;
> {code}
> and adding
> {code}
> class BlockLocation implements Writable {
> String[] getHosts();
> long getOffset();
> long getLength();
> }
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.