Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create initial README file #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
MapR Client Install Instructions
================================
Install MapR client on your Mac/Windows client system by following instructions given at the link.
Follow instructions at http://maprdocs.mapr.com/home/AdvancedInstallation/SettingUptheClient-install-mapr-client.html

IDE Configurations
===================
For running application from IDE add one of the following to your run configurations.

1. Add VM options flag as "-Dfs.mapr.bailout.on.library.mismatch=false" OR

2. Add Environment variable "DISABLE_LIB_MISMATCH" with "true" value.

Running from Command line
===========

Build the project using:

mvn clean install

Run following command to execute OJAI_002_GetStoreAndInsertDocuments class:

java -cp $(mapr classpath):target/ojai-2-samples-1.0-SNAPSHOT.jar com.mapr.ojai.examples.OJAI_002_GetStoreAndInsertDocuments


In order to run classes from OJAI_004_FindAll.java onwards, you'll need drill libraries. So you’ll need to replace the $(mapr classpath) with the output from the following command:

echo classpath | mapr dbshell

Run the command and store standard output in a file called classpath, remove the unwanted characters from the file and then replace $(mapr classpath) with $(cat classpath)

java -cp $(mapr classpath):target/ojai-2-samples-1.0-SNAPSHOT.jar com.mapr.ojai.examples.OJAI_004_FindAll