org.apache.accumulo.cluster.standalone
public class StandaloneAccumuloCluster extends Object implements AccumuloCluster
| Constructor and Description |
|---|
StandaloneAccumuloCluster(Instance instance) |
StandaloneAccumuloCluster(String instanceName,
String zookeepers) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccumuloConfDir() |
String |
getAccumuloHome() |
ClientConfiguration |
getClientConfig()
Get the client configuration for the cluster
|
StandaloneClusterControl |
getClusterControl()
Get an object that can manage a cluster
|
Connector |
getConnector(String user,
AuthenticationToken token)
Utility method to get a connector to the cluster.
|
org.apache.hadoop.fs.FileSystem |
getFileSystem() |
String |
getHadoopConfDir() |
String |
getInstanceName() |
String |
getZooKeepers() |
void |
setAccumuloConfDir(String accumuloConfDir) |
void |
setAccumuloHome(String accumuloHome) |
void |
setHadoopConfDir(String hadoopConfDir) |
void |
start()
Start the AccumuloCluster
|
void |
stop()
Stop the AccumuloCluster
|
public StandaloneAccumuloCluster(Instance instance)
public String getAccumuloHome()
public void setAccumuloHome(String accumuloHome)
public String getAccumuloConfDir()
public void setAccumuloConfDir(String accumuloConfDir)
public String getHadoopConfDir()
public void setHadoopConfDir(String hadoopConfDir)
public String getInstanceName()
getInstanceName in interface AccumuloClusterpublic String getZooKeepers()
getZooKeepers in interface AccumuloClusterpublic Connector getConnector(String user, AuthenticationToken token) throws AccumuloException, AccumuloSecurityException
AccumuloClustergetConnector in interface AccumuloClusterAccumuloExceptionAccumuloSecurityExceptionpublic ClientConfiguration getClientConfig()
AccumuloClustergetClientConfig in interface AccumuloClusterpublic StandaloneClusterControl getClusterControl()
AccumuloClustergetClusterControl in interface AccumuloClusterpublic void start()
throws IOException
AccumuloClusterstart in interface AccumuloClusterIOExceptionpublic void stop()
throws IOException
AccumuloClusterstop in interface AccumuloClusterIOExceptionpublic org.apache.hadoop.fs.FileSystem getFileSystem()
throws IOException
getFileSystem in interface AccumuloClusterFileSystem in use by this clusterIOExceptionCopyright © 2011–2016 The Apache Software Foundation. All rights reserved.