hdfsGetDefaultBlockSize()

Supported by libMapRClient for hadoop-2.x

Gets the default size of blocks for the connected file system.

Signature

tOffset hdfsGetDefaultBlockSize(hdfsFS fs)

Parameters

Parameter Description
fs The handle of file system. Obtain this handle with one of the hdfsConnect() APIs.

Return Value

Returns 256 MB.

Returns -1 on error.

Check errno for error codes and meanings.