hdfsConnect()
Supported by libMapRClient
for
hadoop-0.20.2
Connects to a MapR-FS cluster.
If a connection to the cluster in which the remote host is located already exists, the functions return a handle to this existing connection.
If a connection to the cluster does not already exist, the functions return a handle to a new connection instance.
Note that if default
is used for the
host
parameter, this means connect to the first
cluster listed in the
MAPR_HOME/conf/mapr-clusters.conf
file on the
client.
For more information about connections, see Establishing Connections to MapR-FS.
Signature
hdfsFS hdfsConnect(const char* host, tPort port)
Parameters
Parameter | Description |
---|---|
host | A string containing either a hostname or an IP address of a CLDB node of
a MapR-FS cluster. To connect to the first MapR-FS cluster that is
specified in This parameter does not accept NULL as a value. |
port | The port on which the host is listening. |
Return Value
Returns a handle to the connected filesystem, or NULL on error.
Check errno for error codes and meanings.