@Override
  public void perform() throws Exception {
    if (clusterManager == null) {
      getLogger().info("Couldn't perform command action, it requires a distributed cluster.");
      return;
    }

    // Don't try the modify if we're stopping
    if (context.isStopping()) {
      return;
    }

    localPerform();
  }
Base class for performing Actions based on linux commands requiring sudo privileges
hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/SudoCommandAction.java