hdfsDisconnect()

Supported by libMapRClient for hadoop-2.x

Disconnects from the specified file system.

Even if there is an error, the resources that are associated with the file system handle are freed.

Signature

int hdfsDisconnect(hdfsFS fs)

Parameter

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

Return Value

Returns 0 on success, -1 on error.

Check errno for error codes and meanings.