Example usage for org.apache.hadoop.mapreduce MRJobConfig DEFAULT_MR_AM_STAGING_DIR

List of usage examples for org.apache.hadoop.mapreduce MRJobConfig DEFAULT_MR_AM_STAGING_DIR

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce MRJobConfig DEFAULT_MR_AM_STAGING_DIR.

Prototype

String DEFAULT_MR_AM_STAGING_DIR

To view the source code for org.apache.hadoop.mapreduce MRJobConfig DEFAULT_MR_AM_STAGING_DIR.

Click Source Link

Usage

From source file:org.apache.ignite.internal.processors.hadoop.GridHadoopUtils.java

License:Apache License

/**
 * Gets staging area directory./*from w w  w .  ja va2  s. c  o m*/
 *
 * @param conf Configuration.
 * @param usr User.
 * @return Staging area directory.
 */
public static Path stagingAreaDir(Configuration conf, String usr) {
    return new Path(conf.get(MRJobConfig.MR_AM_STAGING_DIR, MRJobConfig.DEFAULT_MR_AM_STAGING_DIR)
            + Path.SEPARATOR + usr + Path.SEPARATOR + STAGING_CONSTANT);
}