Step 5: Build the Application

Start building an application! This section lists a few of the sample applications available in HPE Data Fabric.

NOTE
When building and running your application, you may want to use a classpath for printing to standard output. The following classpaths are available:
mapr classpath
Prints CLASSPATH to standard output. This classpath could be used to build your application classpath to runHPE Data Fabric applications for YARN and other components.
mapr clientclasspath
Prints CLASSPATH for HPE Data Fabric Database clients to standard output. The clientclasspath could be used to build the classpath to run your HPE Data Fabric Database (binary and JSON) and HPE Data Fabric Streams applications.

HPE Data Fabric Database JSON

Managing JSON Tables
This section describes how to create, list, and delete JSON tables as well as set permissions and manage column families using either the Data Fabric Java API library or the HPE Data Fabric Database Shell commands.
Creating JSON Documents in Java OJAI
This section provides several Java examples of creating a document.
Examples: Inserting JSON Documents
This section shows how to insert a document or data into a document store (HPE Data Fabric Database JSON table) with Java and dbshell.
Examples: Querying JSON Documents
This section provides several examples of querying documents.
HPE Data Fabric Database JSON MapReduce: Sample App
This sample Java application extends the Apache Hadoop MapReduce framework to read records (JSON documents) from a JSON table and inserts new documents into another JSON table. This API library allows you to write your own MapReduce applications to write data from one JSON table to another.

HPE Data Fabric Database Binary

C API Examples
This section provides examples using the HPE Data Fabric Database libMapRClient C API to operate on HPE Data Fabric Database binary tables.
HPE Data Fabric Database Sample C Application
This section provides additional sample C applications that accesses and performs operations on HPE Data Fabric Database binary tables.

HPE Data Fabric Streams Streams

Sample Java Consumer
This sample Java consumer application iterates through the returned records, extracts the value of each message, and prints the value to standard output.
Sample Java Producer
This sample Java producer application publishes messages to a stream topic.
Developing a HPE Data Fabric Streams C Application
These sample C applications publish messages to a stream topic and consumes the messages.
Developing HPE Data Fabric Streams Python Applications
These sample Python applications publish messages to a stream topic and consumes the messages.

file system

Sample Applications
This sample Java application demonstrates how to set, get, modify, and delete ACEs on files using the Java APIs.
hdfs_write_revised.c
This C application demonstrates how to write to files by using the hdfsWrite() and hdfsPwrite() APIs.
hdfs_read_revised.c
This C application demonstrates how to read from files by using the hdfsRead() and hdfsPread() APIs.
hdfs_connect_as_user.c
This C application demonstrates how to create and write to files impersonating another user by using the hdfsConnectAsUser() API.

Github Repo

You can find additional sample code on the MapR Demos Github repository.