Supported by libMapRClient for hadoop-2.x
Connects to a filesystem cluster as specified user.
The function returns a handle to a new connection instance.
For more information about connections, see Establishing Connections to filesystem.
hdfsFS hdfsConnectAsUserNewInstance(const char* host, tPort port, const char* user)
| Parameter | Description |
|---|---|
host |
A string containing either a hostname or an IP address of a CLDB node of a filesystem cluster.
To connect to the first filesystem cluster that is specified in MAPR_HOME/conf/mapr-clusters.conf on the client, pass the value default and use the port number 0. This parameter does not accept NULL as a value. |
port |
The port on which the host is listening. |
Returns a handle to the connected filesystem, or NULL on error.