Java Code Examples for org.apache.hadoop.conf.Configuration.clear()

The following are Jave code examples for showing how to use clear() of the org.apache.hadoop.conf.Configuration class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: ditb   File: TestHQuorumPeer.java   Source Code and License Vote up 6 votes
@Test public void testShouldAssignDefaultZookeeperClientPort() {
  Configuration config = HBaseConfiguration.create();
  config.clear();
  Properties p = ZKConfig.makeZKProps(config);
  assertNotNull(p);
  assertEquals(2181, p.get("clientPort"));
}