@Override
            public void run() {
                try {
                    BufferedReader reader;
                    reader = new BufferedReader(new InputStreamReader(hboxProcess.getErrorStream()));
                    String hboxStderrLog;
                    while ((hboxStderrLog = reader.readLine()) != null) {
                        if (conf.getBoolean(
                                        HboxConfiguration.HBOX_CONTAINER_RUNNING_LOG_ENABLE,
                                        HboxConfiguration.DEFAULT_HBOX_CONTAINER_RUNNING_LOG_ENABLE)
                                && !(hboxAppType.equals("HOROVOD")
                                        || hboxAppType.equals("MPI")
                                        || hboxAppType.equals("TENSORNET")
                                        || hboxAppType.equals("VPC")
                                        || hboxAppType.equals("DIGITS"))) {
                            heartbeatThread.appendContainerStdErr(hboxStderrLog);
                        }
                        if (hboxStderrLog.contains("reporter progress")) {
                            heartbeatThread.setProgressLog(hboxStderrLog);
                        } else if (hboxStderrLog.contains("FSDataInputStream#read error")
                                || hboxStderrLog.contains("Byte-buffer read unsupported by input stream")
                                || hboxStderrLog.contains(
                                        "org.apache.hadoop.fs.FSDataInputStream.read(FSDataInputStream.java")) {
                            continue;
                        } else {
                            LOG.info(hboxStderrLog);
                            if (hboxAppType.equals("MPI")
                                    || hboxAppType.equals("TENSORNET")
                                    || hboxAppType.equals("HOROVOD")) {
                                if (hboxStderrLog.contains("Permission denied")) {
                                    LOG.info("bind failed, now am retry.");
                                    reportFailedAndExit();
                                }
                            }
                        }
                    }
                } catch (Exception e) {
                    LOG.warn("Error in thread stderrRedirectThread");
                    e.printStackTrace();
                }
            }
set TF_CLUSTER_DEF in env
python script can load cluster def use "json.loads(os.environ["TF_CLUSTER_DEF"])"
core/src/main/java/net/qihoo/hbox/container/HboxContainer.java