Class StandaloneAccumuloCluster
- java.lang.Object
-
- org.apache.accumulo.cluster.standalone.StandaloneAccumuloCluster
-
- All Implemented Interfaces:
AccumuloCluster
public class StandaloneAccumuloCluster extends Object implements AccumuloCluster
AccumuloCluster implementation to connect to an existing deployment of Accumulo
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccumuloHome()
String
getClientAccumuloConfDir()
ClientConfiguration
getClientConfig()
Get the client configuration for the clusterStandaloneClusterControl
getClusterControl()
Get an object that can manage a clusterConnector
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.xmlorg.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 AccumuloClustervoid
stop()
Stop the AccumuloCluster
-
-
-
Constructor Detail
-
StandaloneAccumuloCluster
public StandaloneAccumuloCluster(ClientConfiguration clientConf, org.apache.hadoop.fs.Path tmp, List<ClusterUser> users, String serverUser)
-
StandaloneAccumuloCluster
public StandaloneAccumuloCluster(Instance instance, ClientConfiguration clientConf, org.apache.hadoop.fs.Path tmp, List<ClusterUser> users, String serverUser)
-
-
Method Detail
-
getAccumuloHome
public String getAccumuloHome()
-
setAccumuloHome
public void setAccumuloHome(String accumuloHome)
-
getClientAccumuloConfDir
public String getClientAccumuloConfDir()
-
setClientAccumuloConfDir
public void setClientAccumuloConfDir(String accumuloConfDir)
-
getServerAccumuloConfDir
public String getServerAccumuloConfDir()
-
setServerAccumuloConfDir
public void setServerAccumuloConfDir(String accumuloConfDir)
-
getHadoopConfDir
public String getHadoopConfDir()
-
setHadoopConfDir
public void setHadoopConfDir(String hadoopConfDir)
-
getInstanceName
public String getInstanceName()
- Specified by:
getInstanceName
in interfaceAccumuloCluster
- Returns:
- Accumulo instance name
-
getZooKeepers
public String getZooKeepers()
- Specified by:
getZooKeepers
in interfaceAccumuloCluster
- Returns:
- zookeeper connection string
-
getConnector
public Connector getConnector(String user, AuthenticationToken token) throws AccumuloException, AccumuloSecurityException
Description copied from interface:AccumuloCluster
Utility method to get a connector to the cluster.- Specified by:
getConnector
in interfaceAccumuloCluster
- Throws:
AccumuloException
AccumuloSecurityException
-
getClientConfig
public ClientConfiguration getClientConfig()
Description copied from interface:AccumuloCluster
Get the client configuration for the cluster- Specified by:
getClientConfig
in interfaceAccumuloCluster
-
getClusterControl
public StandaloneClusterControl getClusterControl()
Description copied from interface:AccumuloCluster
Get an object that can manage a cluster- Specified by:
getClusterControl
in interfaceAccumuloCluster
- Returns:
- Manage the state of the cluster
-
start
public void start() throws IOException
Description copied from interface:AccumuloCluster
Start the AccumuloCluster- Specified by:
start
in interfaceAccumuloCluster
- Throws:
IOException
-
stop
public void stop() throws IOException
Description copied from interface:AccumuloCluster
Stop the AccumuloCluster- Specified by:
stop
in interfaceAccumuloCluster
- Throws:
IOException
-
getHadoopConfiguration
public org.apache.hadoop.conf.Configuration getHadoopConfiguration()
-
getFileSystem
public org.apache.hadoop.fs.FileSystem getFileSystem() throws IOException
- Specified by:
getFileSystem
in interfaceAccumuloCluster
- Returns:
- the
FileSystem
in use by this cluster - Throws:
IOException
-
getTemporaryPath
public org.apache.hadoop.fs.Path getTemporaryPath()
- Specified by:
getTemporaryPath
in interfaceAccumuloCluster
- Returns:
- A path on
FileSystem
this cluster is running on that can be used for temporary files
-
getUser
public ClusterUser getUser(int offset)
-
getSiteConfiguration
public AccumuloConfiguration getSiteConfiguration()
Description copied from interface:AccumuloCluster
Get server side config derived from accumulo-site.xml- Specified by:
getSiteConfiguration
in interfaceAccumuloCluster
-
-