HADOOP-12786. "hadoop key" command usage is not documented. Contributed by Xiao Chen.
(cherry picked from commit1c48e50ce7
) (cherry picked from commita670165bbd
)
This commit is contained in:
parent
e25d82bbc2
commit
bb02c3c803
|
@ -1113,6 +1113,9 @@ Release 2.7.2 - 2016-01-25
|
|||
HADOOP-12415. Fixed pom files to correctly include compile-time dependency on
|
||||
netty. (Tom Zeng via cos)
|
||||
|
||||
HADOOP-12786. "hadoop key" command usage is not documented.
|
||||
(Xiao Chen via aajisaka)
|
||||
|
||||
Release 2.7.1 - 2015-07-06
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -372,7 +372,7 @@ public class KeyShell extends Configured implements Tool {
|
|||
public static final String DESC =
|
||||
"The delete subcommand deletes all versions of the key\n" +
|
||||
"specified by the <keyname> argument from within the\n" +
|
||||
"provider specified -provider. The command asks for\n" +
|
||||
"provider specified by -provider. The command asks for\n" +
|
||||
"user confirmation unless -f is specified.";
|
||||
|
||||
String keyName = null;
|
||||
|
|
|
@ -138,7 +138,19 @@ Use [`yarn jar`](../../hadoop-yarn/hadoop-yarn-site/YarnCommands.html#jar) to la
|
|||
|
||||
### `key`
|
||||
|
||||
Manage keys via the KeyProvider.
|
||||
Usage: `hadoop key <subcommand> [options]`
|
||||
|
||||
| COMMAND\_OPTION | Description |
|
||||
|:---- |:---- |
|
||||
| create *keyname* [-cipher *cipher*] [-size *size*] [-description *description*] [-attr *attribute=value*] [-provider *provider*] [-help] | Creates a new key for the name specified by the *keyname* argument within the provider specified by the `-provider` argument. You may specify a cipher with the `-cipher` argument. The default cipher is currently "AES/CTR/NoPadding". The default keysize is 128. You may specify the requested key length using the `-size` argument. Arbitrary attribute=value style attributes may be specified using the `-attr` argument. `-attr` may be specified multiple times, once per attribute. |
|
||||
| roll *keyname* [-provider *provider*] [-help] | Creates a new version for the specified key within the provider indicated using the `-provider` argument |
|
||||
| delete *keyname* [-provider *provider*] [-f] [-help] | Deletes all versions of the key specified by the *keyname* argument from within the provider specified by `-provider`. The command asks for user confirmation unless `-f` is specified. |
|
||||
| list [-provider *provider*] [-metadata] [-help] | Displays the keynames contained within a particular provider as configured in core-site.xml or specified with the `-provider` argument. `-metadata` displays the metadata. |
|
||||
| -help | Prints usage of this command |
|
||||
|
||||
Manage keys via the KeyProvider. For details on KeyProviders, see the [Transparent Encryption Guide](../hadoop-hdfs/TransparentEncryption.html).
|
||||
|
||||
NOTE: Some KeyProviders (e.g. org.apache.hadoop.crypto.key.JavaKeyStoreProvider) does not support uppercase key names.
|
||||
|
||||
### `trace`
|
||||
|
||||
|
|
Loading…
Reference in New Issue