public class StandaloneAccumuloCluster extends Object implements AccumuloCluster
| Constructor and Description |
|---|
StandaloneAccumuloCluster(ClientConfiguration clientConf,
org.apache.hadoop.fs.Path tmp,
List<ClusterUser> users,
String serverUser) |
StandaloneAccumuloCluster(Instance instance,
ClientConfiguration clientConf,
org.apache.hadoop.fs.Path tmp,
List<ClusterUser> users,
String serverUser) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccumuloHome() |
String |
getClientAccumuloConfDir() |
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() |
org.apache.hadoop.conf.Configuration |
getHadoopConfiguration() |
String |
getInstanceName() |
String |
getServerAccumuloConfDir() |
AccumuloConfiguration |
getSiteConfiguration()
Get server side config derived from accumulo-site.xml
|
org.apache.hadoop.fs.Path |
getTemporaryPath() |
ClusterUser |
getUser(int offset) |
String |
getZooKeepers() |
void |
setAccumuloHome(String accumuloHome) |
void |
setClientAccumuloConfDir(String accumuloConfDir) |
void |
setHadoopConfDir(String hadoopConfDir) |
void |
setServerAccumuloConfDir(String accumuloConfDir) |
void |
start()
Start the AccumuloCluster
|
void |
stop()
Stop the AccumuloCluster
|
public StandaloneAccumuloCluster(ClientConfiguration clientConf, org.apache.hadoop.fs.Path tmp, List<ClusterUser> users, String serverUser)
public StandaloneAccumuloCluster(Instance instance, ClientConfiguration clientConf, org.apache.hadoop.fs.Path tmp, List<ClusterUser> users, String serverUser)
public String getAccumuloHome()
public void setAccumuloHome(String accumuloHome)
public String getClientAccumuloConfDir()
public void setClientAccumuloConfDir(String accumuloConfDir)
public String getServerAccumuloConfDir()
public void setServerAccumuloConfDir(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.conf.Configuration getHadoopConfiguration()
public org.apache.hadoop.fs.FileSystem getFileSystem()
throws IOException
getFileSystem in interface AccumuloClusterFileSystem in use by this clusterIOExceptionpublic org.apache.hadoop.fs.Path getTemporaryPath()
getTemporaryPath in interface AccumuloClusterFileSystem this cluster is running on that can be used for temporary
filespublic ClusterUser getUser(int offset)
public AccumuloConfiguration getSiteConfiguration()
AccumuloClustergetSiteConfiguration in interface AccumuloClusterCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.