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