public class DefaultConfiguration extends Object
Configuration.
Implementations that are built on Hadoop need to be passed options via a
Configuration that is based on the environment, but could be changed
by command-line options. This class allows both patterns. The get()
method will return a Configuration based on the environment by
default, which can be updated and changed using set(Configuration).
Note that the Configuration managed by this class is global and must
only be used for unchanging configuration options, like the URI for HDFS.
| Constructor and Description |
|---|
DefaultConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static Configuration |
get()
Get a copy of the default Hadoop
Configuration. |
static void |
init(Configuration conf)
Initialize the default Hadoop
Configuration if it has not been set. |
static void |
set(Configuration conf)
Set the default Hadoop
Configuration. |
public static Configuration get()
Configuration.
The Configuration returned by this method can be changed without
changing the global Configuration.
Configuration based on the environment or set by
set(Configuration)public static void set(Configuration conf)
Configuration.public static void init(Configuration conf)
Configuration if it has not been set.Copyright © 2013–2015. All rights reserved.