public class KeyShell extends CommandShell
CommandShell.SubCommand| Modifier and Type | Field and Description |
|---|---|
static String |
NO_VALID_PROVIDERS |
| Constructor and Description |
|---|
KeyShell() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCommandUsage()
Return usage string for the command including any summary of subcommands.
|
protected int |
init(String[] args)
Parse the command line arguments and initialize the data.
|
static void |
main(String[] args)
main() entry point for the KeyShell.
|
protected void |
printException(Exception e) |
getErr, getOut, printShellUsage, run, setErr, setOut, setSubCommandgetConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfpublic static final String NO_VALID_PROVIDERS
protected int init(String[] args) throws IOException
% hadoop key create keyName [-size size] [-cipher algorithm]
[-provider providerPath]
% hadoop key roll keyName [-provider providerPath]
% hadoop key list [-provider providerPath]
% hadoop key delete keyName [-provider providerPath] [-i]
% hadoop key invalidateCache keyName [-provider providerPath]
init in class CommandShellargs - Command line arguments.IOExceptionpublic String getCommandUsage()
CommandShellgetCommandUsage in class CommandShellprotected void printException(Exception e)
printException in class CommandShellCopyright © 2008–2022 Apache Software Foundation. All rights reserved.