hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5450) better API for getting the cached blocks locations
Date Fri, 08 Nov 2013 22:16:17 GMT

    [ https://issues.apache.org/jira/browse/HDFS-5450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13817747#comment-13817747
] 

Colin Patrick McCabe commented on HDFS-5450:
--------------------------------------------

We'll also need {{libhdfs}} support.  Currently this is the {{libhdfs}} API for getting block
locations:

{code}
    char*** hdfsGetHosts(hdfsFS fs, const char* path,                          
            tOffset start, tOffset length);                                    
{code}

We probably need to add a new API that returns structures rather than strings, so that this
and other information can be exposed to {{libhdfs}} users.

> 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
>
> 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)

Mime
View raw message