hdfs::native::hdfsGetHosts
[−]
[src]
pub unsafe extern fn hdfsGetHosts(fs: *const hdfsFS, path: *const c_char, start: tOffset, length: tOffset) -> *const *const *const c_char
Get hostnames where a particular block (determined by pos & blocksize)
of a file is stored. The last element in the array is NULL
.
Due to replication, a single block could be present on multiple hosts.
Params
fs
The configured filesystem handle.path
- The path of the file.start
- The start of the block.length
- The length of the block.
Return
Returns a dynamically-allocated 2-d array of blocks-hosts; NULL
on error.