Example usage for org.apache.hadoop.mapreduce MRConfig MASTER_ADDRESS

List of usage examples for org.apache.hadoop.mapreduce MRConfig MASTER_ADDRESS

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce MRConfig MASTER_ADDRESS.

Prototype

String MASTER_ADDRESS

To view the source code for org.apache.hadoop.mapreduce MRConfig MASTER_ADDRESS.

Click Source Link

Usage

From source file:org.gridgain.client.hadoop.GridHadoopClientProtocolSelfTest.java

License:Open Source License

/**
 * @return Configuration./*w ww .  j a  v a 2s  .co m*/
 */
private Configuration config(int port) {
    Configuration conf = new Configuration();

    setupFileSystems(conf);

    conf.set(MRConfig.FRAMEWORK_NAME, GridHadoopClientProtocol.FRAMEWORK_NAME);
    conf.set(MRConfig.MASTER_ADDRESS, "127.0.0.1:" + port);

    conf.set("fs.defaultFS", "ggfs://:" + getTestGridName(0) + "@/");

    return conf;
}