public String getOutput() {
      return output.toString();
    }
Class to collect output and error stream of python subprocess
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClientConfigResourceProvider.java