Package org.apache.hadoop.hbase
Interface ClusterManager
- All Superinterfaces:
org.apache.hadoop.conf.Configurable
- All Known Implementing Classes:
CoprocClusterManager
,HBaseClusterManager
,RESTApiClusterManager
,ZNodeClusterManager
ClusterManager is an api to manage servers in a distributed environment. It provides services for
starting / stopping / killing Hadoop/HBase daemons. Concrete implementations provide actual
functionality for carrying out deployment-specific tasks.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Type of the service daemon -
Method Summary
Modifier and TypeMethodDescriptionboolean
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 hostvoid
restart
(ClusterManager.ServiceType service, String hostname, int port) Restart the service on the given hostvoid
resume
(ClusterManager.ServiceType service, String hostname, int port) Resumes the services running on the given hostvoid
start
(ClusterManager.ServiceType service, String hostname, int port) Start the service on the given hostvoid
stop
(ClusterManager.ServiceType service, String hostname, int port) Stop the service on the given hostvoid
suspend
(ClusterManager.ServiceType service, String hostname, int port) Suspends the service running on the given hostMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Method Details
-
start
Start the service on the given host- Throws:
IOException
-
stop
Stop the service on the given host- Throws:
IOException
-
restart
Restart the service on the given host- Throws:
IOException
-
kill
Kills the service running on the given host- Throws:
IOException
-
suspend
Suspends the service running on the given host- Throws:
IOException
-
resume
Resumes the services running on the given host- Throws:
IOException
-
isRunning
Returns whether the service is running on the remote host. This only checks whether the service still has a pid.- Throws:
IOException
-