@Override
    public String getCommand(ServiceType service, Operation op) {
      return String.format("%s/sbin/hadoop-daemon.sh %s %s %s", hadoopHome, confDir,
        op.toString().toLowerCase(Locale.ROOT), service);
    }
CommandProvider to manage the service using sbin/hadoop-* scripts.
hbase-it/src/test/java/org/apache/hadoop/hbase/HBaseClusterManager.java