hdfsSetThreads()

Unique to libMapRClient

Configures the number of threads for flushing write buffers. This number is specific to individual clients. The default number is 8.

The number of threads must be positive. If it isn’t, EINVAL is returned.

Signature

int hdfsSetThreads(int threads)

Parameters

Parameter Description
threads The number of threads for flushing write buffers.

Return Value

Returns the current number of flush threads for the client, -1 on error. Check errno for error codes and meanings.