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(ClientInfo info, org.apache.hadoop.fs.Path tmp, List<ClusterUser> users, String serverAccumuloConfDir)
-
Method Summary
-
-
-
Constructor Detail
-
StandaloneAccumuloCluster
public StandaloneAccumuloCluster(ClientInfo info, org.apache.hadoop.fs.Path tmp, List<ClusterUser> users, String serverAccumuloConfDir)
-
-
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()
-
setServerCmdPrefix
public void setServerCmdPrefix(String serverCmdPrefix)
-
setClientCmdPrefix
public void setClientCmdPrefix(String clientCmdPrefix)
-
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
-
getServerContext
public ServerContext getServerContext()
- Specified by:
getServerContext
in interfaceAccumuloCluster
- Returns:
- ServerContext
-
createAccumuloClient
public AccumuloClient createAccumuloClient(String user, AuthenticationToken token)
- Specified by:
createAccumuloClient
in interfaceAccumuloCluster
- Returns:
AccumuloClient
that must be closed by user
-
getClientConfig
@Deprecated(since="2.0.0") public ClientConfiguration getClientConfig()
Deprecated.Description copied from interface:AccumuloCluster
Get the client configuration for the cluster- Specified by:
getClientConfig
in interfaceAccumuloCluster
-
getClientProperties
public Properties getClientProperties()
- Specified by:
getClientProperties
in interfaceAccumuloCluster
- Returns:
- client connection info for cluster
-
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()
- Specified by:
getFileSystem
in interfaceAccumuloCluster
- Returns:
- the
FileSystem
in use by this cluster
-
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.properties- Specified by:
getSiteConfiguration
in interfaceAccumuloCluster
-
getAccumuloPropertiesPath
public String getAccumuloPropertiesPath()
- Specified by:
getAccumuloPropertiesPath
in interfaceAccumuloCluster
- Returns:
- Path to accumulo.properties
-
getClientPropsPath
public String getClientPropsPath()
- Specified by:
getClientPropsPath
in interfaceAccumuloCluster
- Returns:
- Path to accumulo-client.properties
-
-