@Override
  public ProcessCPUStatistics getProcessCPUStatistics() {
    throw new UnsupportedOperationException(
        "No appropriate Posix command available for getting recent CPU usage information. For example, the CPU information exposed by ps command 'ps -o %cpu= -p <PID>' represents the percentage of time spent running during the entire lifetime of a process not for the recent CPU usage");
  }
A convenience method to execute shell commands and return all lines of their output.

@param cmdArray the command to run
@return all lines of the output.
@throws IOException
samza-core/src/main/java/org/apache/samza/container/host/PosixCommandBasedStatisticsGetter.java