public class AutoHBase extends Object implements IAutoCredentials, ICredentialsRenewer, INimbusCredentialPlugin
Modifier and Type | Field and Description |
---|---|
static String |
HBASE_CREDENTIALS |
static String |
HBASE_KEYTAB_FILE_KEY |
static String |
HBASE_PRINCIPAL_KEY |
String |
hbaseKeytab |
String |
hbasePrincipal |
Constructor and Description |
---|
AutoHBase() |
Modifier and Type | Method and Description |
---|---|
void |
addTokensToUGI(Subject subject) |
protected String |
getCredentialKey() |
protected Object |
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 HBASE_CREDENTIALS
public static final String HBASE_KEYTAB_FILE_KEY
public static final String HBASE_PRINCIPAL_KEY
public String hbaseKeytab
public String hbasePrincipal
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
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)
protected byte[] getHadoopCredentials(Map conf)
public void renew(Map<String,String> credentials, Map topologyConf)
renew
in interface ICredentialsRenewer
protected String getCredentialKey()
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.