[ 
https://issues.apache.org/jira/browse/HDFS-5450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Wang updated HDFS-5450:
------------------------------

    Attachment: hdfs-5450-1.patch

Hey Colin, good idea on the libhdfs support. I'd like to punt it out to a 
follow-on though if that's okay.

Here's a patch doing just the Java part. I added a new field and getter to 
BlockLocation for {{cachedHosts}} (which is what I believe InputFormats would 
want, since they use getHosts right now), and also cleaned up BlockLocation 
since the constructor logic was kinda messy.

> better API for getting the cached blocks locations
> --------------------------------------------------
>
>                 Key: HDFS-5450
>                 URL: https://issues.apache.org/jira/browse/HDFS-5450
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs-client
>    Affects Versions: 3.0.0
>            Reporter: Colin Patrick McCabe
>            Assignee: Andrew Wang
>            Priority: Minor
>         Attachments: hdfs-5450-1.patch
>
>
> Currently, we have to downcast the {{BlockLocation}] to {{HdfsBlockLocation}} 
> to get information about whether a replica is cached.  We should have this 
> information in {{BlockLocation}} instead.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to