Class MiniAccumuloCluster

java.lang.Object
org.apache.accumulo.minicluster.MiniAccumuloCluster
All Implemented Interfaces:
AutoCloseable

public class MiniAccumuloCluster extends Object implements AutoCloseable
A utility class that will create Zookeeper and Accumulo processes that write all of their data to a single local directory. This class makes it easy to test code against a real Accumulo instance. The use of this utility will yield results which closely match a normal Accumulo instance.
Since:
1.5.0
  • Constructor Details

    • MiniAccumuloCluster

      public MiniAccumuloCluster(File dir, String rootPassword) throws IOException
      Parameters:
      dir - An empty or nonexistent temp directory that Accumulo and Zookeeper can store data in. Creating the directory is left to the user. Java 7, Guava, and Junit provide methods for creating temporary directories.
      rootPassword - Initial root password for instance.
      Throws:
      IOException
    • MiniAccumuloCluster

      public MiniAccumuloCluster(MiniAccumuloConfig config) throws IOException
      Parameters:
      config - initial configuration
      Throws:
      IOException
  • Method Details