@InterfaceAudience.Private public class CoprocClusterManager extends HBaseClusterManager
HBaseClusterManager.CommandProvider, HBaseClusterManager.HadoopShellCommandProvider, HBaseClusterManager.HBaseShellCommandProvider, HBaseClusterManager.RemoteShell, HBaseClusterManager.RemoteSudoShell, HBaseClusterManager.Signal, HBaseClusterManager.ZookeeperShellCommandProvider
ClusterManager.ServiceType
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
private static Set<ClusterManager.ServiceType> |
supportedServices |
DEFAULT_RETRY_ATTEMPTS, DEFAULT_RETRY_SLEEP_INTERVAL, RETRY_ATTEMPTS_KEY, RETRY_SLEEP_INTERVAL_KEY, retryCounterFactory
Constructor and Description |
---|
CoprocClusterManager() |
Modifier and Type | Method and Description |
---|---|
private static Set<ClusterManager.ServiceType> |
buildSupportedServicesSet() |
protected org.apache.hadoop.hbase.util.Pair<Integer,String> |
exec(String hostname,
ClusterManager.ServiceType service,
String... cmd)
Execute the given command on the host using SSH
|
private static org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecResponse |
masterExec(org.apache.hadoop.hbase.client.AsyncAdmin admin,
org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecRequest req) |
private static org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecResponse |
regionServerExec(org.apache.hadoop.hbase.client.AsyncAdmin admin,
org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecRequest req,
org.apache.hadoop.hbase.ServerName targetHost) |
private static org.apache.hadoop.hbase.ServerName |
resolveRegionServerName(org.apache.hadoop.hbase.client.AsyncAdmin admin,
String hostname) |
private static RuntimeException |
serverNotFound(String hostname) |
private static RuntimeException |
unsupportedServiceType(ClusterManager.ServiceType serviceType) |
execSudo, execSudoWithRetries, getCommandProvider, getServiceUser, isRunning, kill, restart, resume, setConf, signal, start, stop, suspend
private static final org.slf4j.Logger LOG
private static final Set<ClusterManager.ServiceType> supportedServices
public CoprocClusterManager()
protected org.apache.hadoop.hbase.util.Pair<Integer,String> exec(String hostname, ClusterManager.ServiceType service, String... cmd) throws IOException
HBaseClusterManager
exec
in class HBaseClusterManager
IOException
- if something goes wrong.private static Set<ClusterManager.ServiceType> buildSupportedServicesSet()
private static org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecResponse masterExec(org.apache.hadoop.hbase.client.AsyncAdmin admin, org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecRequest req)
private static org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecResponse regionServerExec(org.apache.hadoop.hbase.client.AsyncAdmin admin, org.apache.hadoop.hbase.coprocessor.protobuf.generated.ShellExecEndpoint.ShellExecRequest req, org.apache.hadoop.hbase.ServerName targetHost)
private static org.apache.hadoop.hbase.ServerName resolveRegionServerName(org.apache.hadoop.hbase.client.AsyncAdmin admin, String hostname)
private static RuntimeException serverNotFound(String hostname)
private static RuntimeException unsupportedServiceType(ClusterManager.ServiceType serviceType)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.