hdfsSeek()

Supported by libMapRClient for hadoop-2.x

Moves the current offset to another offset in the specified file.

Signature

int hdfsSeek(hdfsFS fs, hdfsFile file, tOffset desiredPos)

Parameters

Parameter Description
fs The handle for the filesystem where the file is located. Obtain this handle with one of the hdfsConnect() APIs.
file The handle to the file. Obtain this handle with one of the hdfsConnect() APIs.
desiredPos The offset to move forward to.

Return Value

Returns 0 on success, -1 on error.

Check errno for error codes and meanings.