Example usage for org.apache.hadoop.mapred RunningJob setupProgress

List of usage examples for org.apache.hadoop.mapred RunningJob setupProgress

Introduction

In this page you can find the example usage for org.apache.hadoop.mapred RunningJob setupProgress.

Prototype

public float setupProgress() throws IOException;

Source Link

Document

Get the progress of the job's setup-tasks, as a float between 0.0 and 1.0.

Usage

From source file:org.pentaho.di.job.entries.hadoopjobexecutor.JobEntryHadoopJobExecutor.java

License:Apache License

public void printJobStatus(RunningJob runningJob) throws IOException {
    if (log.isBasic()) {
        float setupPercent = runningJob.setupProgress() * 100f;
        float mapPercent = runningJob.mapProgress() * 100f;
        float reducePercent = runningJob.reduceProgress() * 100f;
        logBasic(BaseMessages.getString(PKG, "JobEntryHadoopJobExecutor.RunningPercent", setupPercent,
                mapPercent, reducePercent));
    }/*  w w w  .ja va 2 s.  c  o m*/
}