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

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

Introduction

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

Prototype

String MR_AM_ADMIN_COMMAND_OPTS

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

Click Source Link

Document

Admin command opts passed to the MR app master.

Usage

From source file:org.apache.tez.mapreduce.hadoop.TestMRHelpers.java

License:Apache License

@Test(timeout = 5000)
public void testMRAMJavaOpts() {
    Configuration conf = new Configuration();
    conf.set(MRJobConfig.MR_AM_ADMIN_COMMAND_OPTS, " -Dadminfoobar   ");
    conf.set(MRJobConfig.MR_AM_COMMAND_OPTS, "  -Duserfoo  ");
    String opts = MRHelpers.getJavaOptsForMRAM(conf);
    Assert.assertEquals("-Dadminfoobar -Duserfoo", opts);
}