MapR provides a modified version of libhdfs that supports access to
the MapR filesystem. You can develop applications with C that read files, write to files, change
file permissions and file ownership, create and delete files and directories, rename
files, and change the access and modification times of files and directories.
libMapRClient supports and makes modifications to hadoop-2.x version of
libhdfs. The API reference notes which APIs are supported by
hadoop-2.x.
libMapRClient’s version of libhdfs contains the
following changes and additions:
hdfsBuilder structures for
connections to HDFS is limited. Some of the parameters are ignored.hdfsGetDefaultBlockSize(): If the filesystem that the client
is connected to is an instance of filesystem, the returned value is 256 MB,
regardless of the actual setting.hdfsCreateDirectory(): The parameters for buffer size,
replication, and block size are ignored for connections to MapR filesystem.hdfsGetDefaultBlockSizeAtPath(): If the filesystem that the
client is connected to is an instance of filesystem, the returned value is 256 MB,
regardless of the actual setting.hdfsOpenFile(): The parameters for buffer size and replication
are ignored for connections to MapR filesystem.libMapRClient for hadoop-2.xhdfsCreateDirectory2()hdfsGetNameContainerSizeBytes()hdfsOpenFile2()hdfsSetRpcTimeout()hdfsSetThreads()