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:
getInstanceNamein interfaceAccumuloCluster- Returns:
- Accumulo instance name
-
getZooKeepers
public String getZooKeepers()
- Specified by:
getZooKeepersin interfaceAccumuloCluster- Returns:
- zookeeper connection string
-
getServerContext
public ServerContext getServerContext()
- Specified by:
getServerContextin interfaceAccumuloCluster- Returns:
- ServerContext
-
createAccumuloClient
public AccumuloClient createAccumuloClient(String user, AuthenticationToken token)
- Specified by:
createAccumuloClientin interfaceAccumuloCluster- Returns:
AccumuloClientthat must be closed by user
-
getClientConfig
@Deprecated public ClientConfiguration getClientConfig()
Deprecated.Description copied from interface:AccumuloClusterGet the client configuration for the cluster- Specified by:
getClientConfigin interfaceAccumuloCluster
-
getClientProperties
public Properties getClientProperties()
- Specified by:
getClientPropertiesin interfaceAccumuloCluster- Returns:
- client connection info for cluster
-
getClusterControl
public StandaloneClusterControl getClusterControl()
Description copied from interface:AccumuloClusterGet an object that can manage a cluster- Specified by:
getClusterControlin interfaceAccumuloCluster- Returns:
- Manage the state of the cluster
-
start
public void start() throws IOExceptionDescription copied from interface:AccumuloClusterStart the AccumuloCluster- Specified by:
startin interfaceAccumuloCluster- Throws:
IOException
-
stop
public void stop() throws IOExceptionDescription copied from interface:AccumuloClusterStop the AccumuloCluster- Specified by:
stopin interfaceAccumuloCluster- Throws:
IOException
-
getHadoopConfiguration
public org.apache.hadoop.conf.Configuration getHadoopConfiguration()
-
getFileSystem
public org.apache.hadoop.fs.FileSystem getFileSystem() throws IOException- Specified by:
getFileSystemin interfaceAccumuloCluster- Returns:
- the
FileSystemin use by this cluster - Throws:
IOException
-
getTemporaryPath
public org.apache.hadoop.fs.Path getTemporaryPath()
- Specified by:
getTemporaryPathin interfaceAccumuloCluster- Returns:
- A path on
FileSystemthis 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:AccumuloClusterGet server side config derived from accumulo.properties- Specified by:
getSiteConfigurationin interfaceAccumuloCluster
-
getAccumuloPropertiesPath
public String getAccumuloPropertiesPath()
- Specified by:
getAccumuloPropertiesPathin interfaceAccumuloCluster- Returns:
- Path to accumulo.properties
-
getClientPropsPath
public String getClientPropsPath()
- Specified by:
getClientPropsPathin interfaceAccumuloCluster- Returns:
- Path to accumulo-client.properties
-
-