Example usage for org.apache.hadoop.mapred JobProfile getJobId

List of usage examples for org.apache.hadoop.mapred JobProfile getJobId

Introduction

In this page you can find the example usage for org.apache.hadoop.mapred JobProfile getJobId.

Prototype

@Deprecated
public String getJobId() 

Source Link

Usage

From source file:org.apache.hcatalog.templeton.QueueStatusBean.java

License:Apache License

/**
 * Create a new QueueStatusBean//  w w  w  .  jav  a2 s  .c om
 *
 * @param state      store job state
 * @param status     job status
 * @param profile    job profile
 */
public QueueStatusBean(JobState state, JobStatus status, JobProfile profile) throws IOException {
    this.status = status;
    this.profile = profile;

    id = profile.getJobID().toString();
    parentId = state.getId();
    if (id.equals(parentId))
        parentId = null;
    percentComplete = state.getPercentComplete();
    exitValue = state.getExitValue();
    user = state.getUser();
    callback = state.getCallback();
    completed = state.getCompleteStatus();
}

From source file:org.apache.hive.hcatalog.templeton.QueueStatusBean.java

License:Apache License

/**
 * Create a new QueueStatusBean//from  ww  w.  j  a  va  2  s. co m
 *
 * @param state      store job state
 * @param status     job status
 * @param profile    job profile
 */
public QueueStatusBean(JobState state, JobStatus status, JobProfile profile) throws IOException {
    this.status = status;
    this.profile = profile;

    id = profile.getJobID().toString();
    parentId = state.getParent();
    percentComplete = state.getPercentComplete();
    exitValue = state.getExitValue();
    user = profile.getUser();
    callback = state.getCallback();
    completed = state.getCompleteStatus();
    userargs = state.getUserArgs();
}