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

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

Introduction

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

Prototype

public String getUser() 

Source Link

Document

Get the user id.

Usage

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

License:Apache License

/**
 * Create a new QueueStatusBean/* www . j ava2s . c o  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();
}