hdfsSetTicketAndKeyFile()

Dynamically loads a ticket file

Supported by libMapRClient for hadoop-2.x

Use this API to dynamically load a ticket file to connect to newly added clusters and nodes, without restarting your application.

Signature

int hdfsSetTicketAndKeyFile(const char *fname)

Parameters

Parameter Description
fname The name of the ticket file to reload.

Return Value

Returns 0 on success, -1 on error.

Check errno for error codes and meanings.