Step 5: Build the Application

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

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 runMapR Data Platform applications for YARN and other components.
mapr clientclasspath
Prints CLASSPATH for MapR Database clients to standard output. The clientclasspath could be used to build the classpath to run your MapR Database (binary and JSON) and MapR Event Store For Apache Kafka applications.

MapR Database JSON

Build Your Java Application
This section shows how to build a Java application that uses OJAI and accesses MapR Database JSON tables.
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 MapR Data Platform Java API library or the MapR 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 (MapR Database JSON table) with Java and dbshell.
Examples: Querying JSON Documents
This section provides several examples of querying documents.
MapR 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.

MapR Database Binary

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

MapR Event Store For Apache Kafka 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 MapR Event Store For Apache Kafka C Application
These sample C applications publish messages to a stream topic and consumes the messages.
Developing MapR Event Store For Apache Kafka Python Applications
These sample Python applications publish messages to a stream topic and consumes the messages.

MapR 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.