Chapter 2. Quick Start

Now that you have a basic understanding of Accumulo, this chapter should get you up and running. We will work through a couple of different install options and then work through a few examples. The accumulo-quickstart installation should be suitable for use with examples throughout the rest of this book.

The quickest method to get started with Accumulo is to use the MiniAccumuloCluster. It is a minimal version of Accumulo that starts ZooKeeper and runs against the local filesystem instead of starting up HDFS. It provides a testing and experimentation environment that is close to that of a full-blown Accumulo installation, but without the initial configuration overhead. The MiniAccumuloCluster is great for writing automated tests and for experimenting with approaches. It will not scale to large data, but it is perfect for getting started.

The example project we will use is based on the Instamo Archetype, which is an Accumulo contrib project.

Our example includes a maven pom.xml file with populated dependencies. It also contains ShellExample, MapReduceExample, and ExampleAccumuloUnitTest classes that illustrate running different types of client code. Code run against a MiniAccumuloCluster works the same as code that runs against a full Accumulo installation.

To get started, make sure you have Java 1.7 installed and Apache Maven 3.0.4 or greater. See http://maven.apache.org/ if you need to install Maven. Now, clone the Git repository that contains all source ...

Get Accumulo now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.