Example usage for org.apache.hadoop.mapreduce.v2.util MRApps getStagingAreaDir

List of usage examples for org.apache.hadoop.mapreduce.v2.util MRApps getStagingAreaDir

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce.v2.util MRApps getStagingAreaDir.

Prototype

public static Path getStagingAreaDir(Configuration conf, String user) 

Source Link

Usage

From source file:org.apache.tez.mapreduce.client.ResourceMgrDelegate.java

License:Apache License

public String getStagingAreaDir() throws IOException, InterruptedException {
    //    Path path = new Path(MRJobConstants.JOB_SUBMIT_DIR);
    String user = UserGroupInformation.getCurrentUser().getShortUserName();
    Path path = MRApps.getStagingAreaDir(conf, user);
    LOG.debug("getStagingAreaDir: dir=" + path);
    return path.toString();
}