libhdfs defines these structures, which are supported by
Supported by libhdfs for hadoop-0.20.2
This structure can be passed to
hdfsBuilderConnect() for creating connections to MapR-FS clusters. In the
libMapRClient, four of the parameters are ignored.
forceNewInstance is ignored, though the header file does not indicate this.
Specifies the CLDB node to connect to when
hdfsBuilderConnect() is called. This value is set by
defaultis specified for the
hdfsBuilderConnect()will connect to the first cluster listed in the file
- If a hostname or IP address is specified for the
hdfsBuilderConnect()follows these steps:
- Look in
MAPR_HOME/conf/mapr-clusters.confon the client node to match the specified hostname or IP address to a CLDB host and port.
- If they find a match, they try to connect to the cluster and all standard features for connections to MapR clusters are available. These features include high availability across CLDBs and secure connections.
- If they do not find a match or if they cannot locate a
mapr-clusters.conffile, they try to connect to the CLDB host specified in the call to create the connection. However, the standard features for connections to MapR clusters are not available. For example, if the cluster is secured, the connection will fail.
- Look in
Specifies the port to connect to on the CLDB node. This value is set by
Supported by libhdfs for hadoop-0.20.2 and hadoop-2.x
This structure is returned by
hdfsGetPathInfo() and deleted by
hdfsFreeFileInfo(). It contains information about the file or directory that is specified in the call to
Specifies whether the object is a file or directory.
Specifies the name of the object.
Specifies the epoch time in milliseconds of the last modification to the object.
Specifies the size of the object in bytes.
Specifies the count of replicas of the object.
Specifies the block size for the object.
Specifies the owner of the object.
Specifies the group that is associated with the object.
Specifies the permissions on the object.
Specifies the epoch time in milliseconds at which the object was created.