hdfsDisconnect()

Supported by libMapRClient for hadoop-2.x

Disconnects from the specified filesystem.

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

Signature

int hdfsDisconnect(hdfsFS fs)

Parameter

Parameter Description
fs The handle of the filesystem 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.