Example usage for org.apache.hadoop.mapreduce JobStatus getFailureInfo

List of usage examples for org.apache.hadoop.mapreduce JobStatus getFailureInfo

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce JobStatus getFailureInfo.

Prototype

public synchronized String getFailureInfo() 

Source Link

Document

Gets any available info on the reason of failure of the job.

Usage

From source file:org.janusgraph.hadoop.compat.h2.Hadoop2Compat.java

License:Apache License

@Override
public String getJobFailureString(Job j) {
    try {// w  ww . j av a  2 s .  com
        JobStatus js = j.getStatus();
        return String.format("state=%s, failureinfo=%s", js.getState(), js.getFailureInfo());
    } catch (IOException | InterruptedException e) {
        throw new JanusGraphException(e);
    }
}