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 AccumuloCluster
public String getZooKeepers()
getZooKeepers
in interface AccumuloCluster
public Connector getConnector(String user, AuthenticationToken token) throws AccumuloException, AccumuloSecurityException
AccumuloCluster
getConnector
in interface AccumuloCluster
AccumuloException
AccumuloSecurityException
public ClientConfiguration getClientConfig()
AccumuloCluster
getClientConfig
in interface AccumuloCluster
public StandaloneClusterControl getClusterControl()
AccumuloCluster
getClusterControl
in interface AccumuloCluster
public void start() throws IOException
AccumuloCluster
start
in interface AccumuloCluster
IOException
public void stop() throws IOException
AccumuloCluster
stop
in interface AccumuloCluster
IOException
public org.apache.hadoop.fs.FileSystem getFileSystem() throws IOException
getFileSystem
in interface AccumuloCluster
FileSystem
in use by this clusterIOException
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.