private static ShellExecResponse regionServerExec(final AsyncAdmin admin,
    final ShellExecRequest req, final ServerName targetHost) {
    return admin.<ShellExecService.Stub, ShellExecResponse> coprocessorService(
      ShellExecService::newStub,
      (stub, controller, callback) -> stub.shellExec(controller, req, callback), targetHost).join();
  }
Overrides commands to make use of coprocessor where possible. Only supports actions taken against
Master and Region Server hosts.
hbase-it/src/test/java/org/apache/hadoop/hbase/CoprocClusterManager.java