public class AutoHDFS extends Object implements IAutoCredentials, ICredentialsRenewer, INimbusCredentialPlugin
Modifier and Type | Field and Description |
---|---|
static String |
HDFS_CREDENTIALS |
static String |
TOPOLOGY_HDFS_URI |
Constructor and Description |
---|
AutoHDFS() |
Modifier and Type | Method and Description |
---|---|
void |
addTokensToUGI(Subject subject) |
protected String |
getCredentialKey() |
protected org.apache.hadoop.security.Credentials |
getCredentials(Map<String,String> credentials) |
protected byte[] |
getHadoopCredentials(Map conf) |
static void |
main(String[] args) |
void |
populateCredentials(Map<String,String> credentials) |
void |
populateCredentials(Map<String,String> credentials,
Map conf) |
void |
populateSubject(Subject subject,
Map<String,String> credentials) |
void |
prepare(Map conf) |
void |
renew(Map<String,String> credentials,
Map topologyConf) |
void |
shutdown() |
void |
updateSubject(Subject subject,
Map<String,String> credentials) |
public static final String HDFS_CREDENTIALS
public static final String TOPOLOGY_HDFS_URI
public void prepare(Map conf)
prepare
in interface IAutoCredentials
prepare
in interface ICredentialsRenewer
prepare
in interface INimbusCredentialPlugin
public void shutdown()
shutdown
in interface Shutdownable
public void populateCredentials(Map<String,String> credentials, Map conf)
populateCredentials
in interface INimbusCredentialPlugin
public void populateCredentials(Map<String,String> credentials)
populateCredentials
in interface IAutoCredentials
protected org.apache.hadoop.security.Credentials getCredentials(Map<String,String> credentials)
public void updateSubject(Subject subject, Map<String,String> credentials)
updateSubject
in interface IAutoCredentials
public void populateSubject(Subject subject, Map<String,String> credentials)
populateSubject
in interface IAutoCredentials
public void addTokensToUGI(Subject subject)
public void renew(Map<String,String> credentials, Map topologyConf)
renew
in interface ICredentialsRenewer
protected byte[] getHadoopCredentials(Map conf)
protected String getCredentialKey()
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.