Example usage for org.apache.hadoop.mapred JobConf clear

List of usage examples for org.apache.hadoop.mapred JobConf clear

Introduction

In this page you can find the example usage for org.apache.hadoop.mapred JobConf clear.

Prototype

public void clear() 

Source Link

Document

Clears all keys from the configuration.

Usage

From source file:com.google.mr4c.hadoop.ClusterTest.java

License:Open Source License

@Test
public void testRoundTrip() throws Exception {
    JobConf conf = new JobConf();
    conf.clear();
    m_cluster1.applyToConfig(conf);/*from   w w w.j ava2s  . c  om*/
    Cluster cluster = Cluster.extractFromConfig(conf);
    assertEquals(m_cluster1, cluster);
}

From source file:com.google.mr4c.hadoop.MR4CMRJobTest.java

License:Open Source License

private JobConf newJobConf() {
    JobConf jobConf = new JobConf(false);
    jobConf.clear(); // just in case;
    return jobConf;
}