org.apache.hadoop.security.alias
Class CredentialShell
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.security.alias.CredentialShell
- All Implemented Interfaces:
- Configurable, Tool
public class CredentialShell
- extends Configured
- implements Tool
This program is the CLI utility for the CredentialProvider facilities in
Hadoop.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
out
public PrintStream out
- allows stdout to be captured if necessary
err
public PrintStream err
- allows stderr to be captured if necessary
CredentialShell
public CredentialShell()
run
public int run(String[] args)
throws Exception
- Description copied from interface:
Tool
- Execute the command with the given arguments.
- Specified by:
run
in interface Tool
- Parameters:
args
- command specific arguments.
- Returns:
- exit code.
- Throws:
Exception
init
protected int init(String[] args)
throws IOException
- Parse the command line arguments and initialize the data
% hadoop credential create alias [-provider providerPath]
% hadoop credential list [-provider providerPath]
% hadoop credential delete alias [-provider providerPath] [-i]
- Parameters:
args
-
- Returns:
- 0 if the argument(s) were recognized, 1 otherwise
- Throws:
IOException
promptForCredential
protected char[] promptForCredential()
throws IOException
- Throws:
IOException
getPasswordReader
public CredentialShell.PasswordReader getPasswordReader()
setPasswordReader
public void setPasswordReader(CredentialShell.PasswordReader reader)
main
public static void main(String[] args)
throws Exception
- Main program.
- Parameters:
args
- Command line arguments
- Throws:
Exception
Copyright © 2014 Apache Software Foundation. All Rights Reserved.