@Override
  public void init(ActionContext context) throws IOException {
    super.init(context);
    HBaseClusterInterface cluster = context.getHBaseCluster();
    if (cluster instanceof DistributedHBaseCluster) {
      Object manager = ((DistributedHBaseCluster) cluster).getClusterManager();
      if (manager instanceof HBaseClusterManager) {
        clusterManager = (HBaseClusterManager) manager;
      }
    }
  }
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