Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.7.3
-
None
Description
Following webhdfs REST API
http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=GET_BLOCK_LOCATIONS&offset=0&length=1
will get a response like
{ "LocatedBlocks" : { "fileLength" : 1073741824, "isLastBlockComplete" : true, "isUnderConstruction" : false, "lastLocatedBlock" : { ... }, "locatedBlocks" : [ {...} ] } }
This represents for o.a.h.h.p.LocatedBlocks. However according to FileSystem API,
public BlockLocation[] getFileBlockLocations(Path p, long start, long len)
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.
Attachments
Attachments
Issue Links
- breaks
-
HDFS-12442 WebHdfsFileSystem#getFileBlockLocations will always return BlockLocation#corrupt as false
- Resolved
-
HDFS-12459 Fix revert: Add new op GETFILEBLOCKLOCATIONS to WebHDFS REST API
- Resolved
-
HDFS-13351 Revert HDFS-11156 from branch-2/branch-2.8
- Resolved
- contains
-
HDFS-11166 Add webhdfs GETFILEBLOCKLOCATIONS document
- Resolved
- is related to
-
HDFS-12457 Revert HDFS-11156 Add new op GETFILEBLOCKLOCATIONS to WebHDFS REST API
- Resolved
-
HDFS-6874 Add GETFILEBLOCKLOCATIONS operation to HttpFS
- Resolved
- relates to
-
HDFS-14477 No enum constant Operation.GET_BLOCK_LOCATIONS
- Resolved