@InterfaceAudience.Private public class HBaseClusterManager extends Configured
| Modifier and Type | Class and Description |
|---|---|
static class |
org.apache.hadoop.hbase.ClusterManager.ServiceType
Type of the service daemon
|
protected class |
HBaseClusterManager.RemoteShell
Executes commands over SSH
|
| Modifier and Type | Field and Description |
|---|---|
protected static Log |
LOG |
protected RetryCounterFactory |
retryCounterFactory |
| Constructor and Description |
|---|
HBaseClusterManager() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.hadoop.hbase.HBaseClusterManager.CommandProvider |
getCommandProvider(org.apache.hadoop.hbase.ClusterManager.ServiceType service) |
String |
isRunning(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
Returns whether the service is running on the remote host.
|
void |
kill(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
Kills the service running on the given host
|
void |
restart(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
Restart the service on the given host
|
void |
resume(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
Resumes the services running on the given host
|
void |
setConf(Configuration conf) |
void |
signal(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String signal,
String hostname) |
void |
start(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
Start the service on the given host
|
void |
stop(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
Stop the service on the given host
|
void |
suspend(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
Suspends the service running on the given host
|
protected static final Log LOG
protected RetryCounterFactory retryCounterFactory
public void setConf(Configuration conf)
protected org.apache.hadoop.hbase.HBaseClusterManager.CommandProvider getCommandProvider(org.apache.hadoop.hbase.ClusterManager.ServiceType service)
public void start(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
throws IOException
IOExceptionpublic void stop(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
throws IOException
IOExceptionpublic void restart(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
throws IOException
IOExceptionpublic void signal(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String signal,
String hostname)
throws IOException
IOExceptionpublic String isRunning(org.apache.hadoop.hbase.ClusterManager.ServiceType service, String hostname, int port) throws IOException
IOExceptionpublic void kill(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
throws IOException
IOExceptionpublic void suspend(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
throws IOException
IOExceptionpublic void resume(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
throws IOException
IOException