public class MiniAccumuloCluster extends Object
MockAccumulo
, but much slower.Constructor and Description |
---|
MiniAccumuloCluster(File dir,
String rootPassword) |
MiniAccumuloCluster(MiniAccumuloConfig config) |
Modifier and Type | Method and Description |
---|---|
ClientConfiguration |
getClientConfig() |
MiniAccumuloConfig |
getConfig() |
Connector |
getConnector(String user,
String passwd)
Utility method to get a connector to the MAC.
|
Set<org.apache.accumulo.core.util.Pair<ServerType,Integer>> |
getDebugPorts() |
String |
getInstanceName() |
String |
getZooKeepers() |
void |
start()
Starts Accumulo and Zookeeper processes.
|
void |
stop()
Stops Accumulo and Zookeeper processes.
|
public MiniAccumuloCluster(File dir, String rootPassword) throws IOException
dir
- An empty or nonexistant temp directoy 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.IOException
public MiniAccumuloCluster(MiniAccumuloConfig config) throws IOException
config
- initial configurationIOException
public void start() throws IOException, InterruptedException
IOException
InterruptedException
public Set<org.apache.accumulo.core.util.Pair<ServerType,Integer>> getDebugPorts()
public String getInstanceName()
public String getZooKeepers()
public void stop() throws IOException, InterruptedException
IOException
InterruptedException
public MiniAccumuloConfig getConfig()
public Connector getConnector(String user, String passwd) throws AccumuloException, AccumuloSecurityException
AccumuloException
AccumuloSecurityException
public ClientConfiguration getClientConfig()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.