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 "Weiwei Yang (JIRA)" <ji...@apache.org> on 2016/11/18 12:59:58 UTC
[jira] [Created] (HDFS-11156) WebHDFS GET_BLOCK_LOCATIONS
Weiwei Yang created HDFS-11156:
----------------------------------
Summary: WebHDFS GET_BLOCK_LOCATIONS
Key: HDFS-11156
URL: https://issues.apache.org/jira/browse/HDFS-11156
Project: Hadoop HDFS
Issue Type: Bug
Components: webhdfs
Affects Versions: 2.7.3
Reporter: Weiwei Yang
Assignee: Weiwei Yang
Following webhdfs REST API
{code}
http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=GET_BLOCK_LOCATIONS&offset=0&length=1
{code}
will get a response like
{code}
{
"LocatedBlocks" : {
"fileLength" : 1073741824,
"isLastBlockComplete" : true,
"isUnderConstruction" : false,
"lastLocatedBlock" : { ... },
"locatedBlocks" : [ {...} ]
}
}
{code}
This represents for *o.a.h.h.p.LocatedBlocks*. However according to *FileSystem* API,
{code}
public BlockLocation[] getFileBlockLocations(Path p, long start, long len)
{code}
clients would expect an array of BlockLocation. This mismatch should be fixed. Marked as Incompatible change as this will change the output of the GET_BLOCK_LOCATIONS API.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org