Package org.apache.hadoop.security.token
Class DtUtilShell
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.tools.CommandShell
org.apache.hadoop.security.token.DtUtilShell
- All Implemented Interfaces:
Configurable,Tool
DtUtilShell is a set of command line token file management operations.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.tools.CommandShell
CommandShell.SubCommand -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.tools.CommandShell
getErr, getOut, printException, printShellUsage, run, setErr, setOut, setSubCommandMethods 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
-
Field Details
-
DT_USAGE
- See Also:
-
-
Constructor Details
-
DtUtilShell
public DtUtilShell()
-
-
Method Details
-
init
Parse the command line arguments and initialize subcommand. Also will attempt to perform Kerberos login if both -principal and -keytab flags are passed in args array.- Specified by:
initin classCommandShell- Parameters:
args- args.- Returns:
- 0 if the argument(s) were recognized, 1 otherwise
- Throws:
Exception- Exception.
-
getCommandUsage
Description copied from class:CommandShellReturn usage string for the command including any summary of subcommands.- Specified by:
getCommandUsagein classCommandShell- Returns:
- command usage.
-
main
- Throws:
Exception
-