tree: 3ac682607f1c3561f6d928b33f0007a651829d85 [path history] [tgz]
  1. src/
  2. LICENSE
  3. NOTICE
  4. pom.xml
  5. README.md
src/main/resources/archetype-resources/README.md

Instamo

Introduction

Instamo makes it easy to run some simple applications against a local, transient Accumulo instance in minutes. No setup or installation is required. This is possible if Java and Maven are already installed by following the steps below.

Build the code

mvn package

The Maven package command will run the unit test. After packing the code, you can also run one of the following applications.

Map Reduce

It's possible to run local map reduce jobs against the MiniAccumuloCluster instance. There is an example of this in the src directory The following command will run the map reduce example.

mvn exec:exec -P mapreduce

Accumulo Shell

The Accumulo shell is a simple application that, among other features, provides interactive access to tables in Accumulo. The following command will launch the shell against a local Accumulo instance.

mvn exec:exec -P shell

Writing your own

The ExampleAccumuloUnitTest class (src/test/java/ExampleAccumuloUnitTest.java) is a great place to begin writing your first code to run against Accumulo. The test currently creates some data about people.

Each row contains information about a person, notably the friends and enemies of that person. The test case has a TODO comment for where you can try to find the common enemies between Alice and Bob.

This test class is also a great starting point to write and read your own data to Accumulo.