public class MiniAccumuloConfig extends Object
MiniAccumuloCluster
. Required configurations must be passed to constructor and all other configurations are optional.Constructor and Description |
---|
MiniAccumuloConfig(File dir,
String rootPassword) |
Modifier and Type | Method and Description |
---|---|
File |
getDir() |
int |
getNumTservers() |
String |
getRootPassword() |
Map<String,String> |
getSiteConfig() |
MiniAccumuloConfig |
setNumTservers(int numTservers)
Calling this method is optional.
|
MiniAccumuloConfig |
setSiteConfig(Map<String,String> siteConfig)
Calling this method is optional.
|
public MiniAccumuloConfig(File dir, String rootPassword)
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
- The initial password for the Accumulo root userpublic File getDir()
public String getRootPassword()
public int getNumTservers()
public MiniAccumuloConfig setNumTservers(int numTservers)
numTservers
- the number of tablet servers that mini accumulo cluster should startpublic MiniAccumuloConfig setSiteConfig(Map<String,String> siteConfig)
siteConfig
- key/values that you normally put in accumulo-site.xml can be put hereCopyright © 2011-2016 The Apache Software Foundation. All Rights Reserved.