Package org.apache.hadoop.hdfs.tools
Class GetConf
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hdfs.tools.GetConf
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
public class GetConf
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
Tool for getting configuration information from a configuration file.
Adding more options:
-
If adding a simple option to get a value corresponding to a key in the
configuration, use regular
GetConf.CommandHandler. SeeGetConf.Command.EXCLUDE_FILEexample. -
If adding an option that is does not return a value for a key, add
a subclass of
GetConf.CommandHandlerand set it up inGetConf.Command. SeeGetConf.Command.NAMENODEfor example. Add for the new option added, a map entry with the correspondingGetConf.CommandHandler.
-
Method Summary
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf