The Accumulo-Examples repository contains a collection of examples for Accumulo versions 2.0 and
greater. Examples within the main branch are designed to work with the version currently
under development. Additional branches exist for previous releases of the Accumulo 2.x line. For
example, the 2.0 branch contains examples specifically intended to work with that release version.
The Accumulo Tour also provides several simple introductory examples that may be of interest.
A collection of examples for Accumulo 1.10 can be found here.
Setup instructions
Follow the steps below to run the Accumulo examples:
Follow Accumulo’s quickstart to install and run an Accumulo instance.
Accumulo has an accumulo-client.properties in conf/ that must be configured as
the examples will use this file to connect to your instance.
Review env.sh.example and accumulo-env.sh (within your accumulo installation) to see if you
need to customize them. If ACCUMULO_HOME & HADOOP_HOME are set in your shell, you may be
able skip this step. Make sure ACCUMULO_CLIENT_PROPS is set to the location of your
accumulo-client.properties.
cp conf/env.sh.example conf/env.sh
vim conf/env.sh
Build the examples repo and copy the examples jar to Accumulo’s lib/ directory to get on its
class path:
Each Accumulo example has its own documentation and instructions for running the example which
are linked to below.
When running the examples, remember the tips below:
Examples are run using the runex or runmr commands which are located in the bin/ directory
of this repo. The runex command is a simple script that use the examples shaded jar to run a
a class. The runmr starts a MapReduce job in YARN.
Commands intended to be run in bash are prefixed by ‘$’ and should be run from the root of this
repository.
Several examples use the accumulo and accumulo-util commands which are expected to be on your
PATH. These commands are found in the bin/ directory of your Accumulo installation.
Commands intended to be run in the Accumulo shell are prefixed by ‘>’.
Available Examples
Each example below highlights a feature of Apache Accumulo.
Apache Accumulo Examples
Introduction
The Accumulo-Examples repository contains a collection of examples for Accumulo versions 2.0 and greater. Examples within the
mainbranch are designed to work with the version currently under development. Additional branches exist for previous releases of the Accumulo 2.x line. For example, the2.0branch contains examples specifically intended to work with that release version.The Accumulo Tour also provides several simple introductory examples that may be of interest.
A collection of examples for Accumulo 1.10 can be found here.
Setup instructions
Follow the steps below to run the Accumulo examples:
Clone this repository
Follow Accumulo’s quickstart to install and run an Accumulo instance. Accumulo has an accumulo-client.properties in
conf/that must be configured as the examples will use this file to connect to your instance.Review env.sh.example and accumulo-env.sh (within your accumulo installation) to see if you need to customize them. If
ACCUMULO_HOME&HADOOP_HOMEare set in your shell, you may be able skip this step. Make sureACCUMULO_CLIENT_PROPSis set to the location of your accumulo-client.properties.Build the examples repo and copy the examples jar to Accumulo’s
lib/directory to get on its class path:Each Accumulo example has its own documentation and instructions for running the example which are linked to below.
When running the examples, remember the tips below:
runexorrunmrcommands which are located in thebin/directory of this repo. Therunexcommand is a simple script that use the examples shaded jar to run a a class. Therunmrstarts a MapReduce job in YARN.accumuloandaccumulo-utilcommands which are expected to be on yourPATH. These commands are found in thebin/directory of your Accumulo installation.Available Examples
Each example below highlights a feature of Apache Accumulo.
Release Testing
This repository can be used to test Accumulo release candidates. See docs/release-testing.md.