Step 5: Build the Application
Start building an application! This section lists a few of the sample applications available in HPE Ezmeral 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 Ezmeral Data Fabric applications for YARN and other components.
- mapr clientclasspath
- Prints CLASSPATH for HPE Ezmeral Data Fabric Database clients to standard output. The clientclasspath could be used to build the classpath to run your HPE Ezmeral Data Fabric Database (binary and JSON) and HPE Ezmeral Data Fabric Streams applications.
HPE Ezmeral 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 Ezmeral 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 Ezmeral Data Fabric Database JSON table) with Java and dbshell.
- Examples: Querying JSON Documents
- This section provides several examples of querying documents.
- HPE Ezmeral 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 Ezmeral Data Fabric Database Binary
- C API Examples
- This section provides examples using the HPE Ezmeral Data Fabric Database libMapRClient C API to operate on HPE Ezmeral Data Fabric Database binary tables.
- HPE Ezmeral Data Fabric Database Sample C Application
- This section provides additional sample C applications that accesses and performs operations on HPE Ezmeral Data Fabric Database binary tables.
HPE Ezmeral 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 Ezmeral Data Fabric Streams C Application
- These sample C applications publish messages to a stream topic and consumes the messages.
- Developing HPE Ezmeral 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.