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

Return

Returns a dynamically-allocated 2-d array of blocks-hosts; NULL on error.