Sample Applications
The MapR client comes with three sample
applications to demonstrate the filesystem C APIs. These
applications are in the folders
MAPR_HOME/hadoop/hadoop-0.20.2/src/c++/libhdfs
and
MAPR_HOME/hadoop/hadoop-2.x/src/c++/libhdfs
.
The more complex sample applications documented here are revisions to two of the installed sample applications.
The following applications demonstrate how to write to and read from files using the APIs: