public class AutoHiveNimbus extends AbstractHadoopNimbusPluginAutoCreds
Modifier and Type | Field and Description |
---|---|
String |
hiveKeytab |
String |
hivePrincipal |
String |
metaStoreURI |
CONFIG_KEY_RESOURCES
Constructor and Description |
---|
AutoHiveNimbus() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.hive.conf.HiveConf |
createHiveConf(String metaStoreUri,
String hiveMetaStorePrincipal) |
void |
doPrepare(Map<String,Object> conf)
Prepare the plugin.
|
void |
doRenew(Map<String,String> credentials,
Map<String,Object> topologyConf,
String topologyOwnerPrincipal) |
protected String |
getConfigKeyString()
The lookup key for the config key string.
|
String |
getCredentialKey(String configKey)
The lookup key for the config key string.
|
protected byte[] |
getHadoopCredentials(Map<String,Object> conf,
org.apache.hadoop.conf.Configuration configuration,
String topologySubmitterUser) |
protected byte[] |
getHadoopCredentials(Map<String,Object> conf,
String topologyOwnerPrincipal) |
protected byte[] |
getHadoopCredentials(Map<String,Object> conf,
String configKey,
String topologyOwnerPrincipal) |
void |
shutdown() |
fillHadoopConfiguration, getConfigKeys, getCredentials, populateCredentials, prepare, renew
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
populateCredentials
public String hiveKeytab
public String hivePrincipal
public String metaStoreURI
public void doPrepare(Map<String,Object> conf)
AbstractHadoopNimbusPluginAutoCreds
doPrepare
in class AbstractHadoopNimbusPluginAutoCreds
conf
- the storm cluster conf set via storm.yamlprotected String getConfigKeyString()
AbstractHadoopNimbusPluginAutoCreds
getConfigKeyString
in class AbstractHadoopNimbusPluginAutoCreds
public void shutdown()
protected byte[] getHadoopCredentials(Map<String,Object> conf, String configKey, String topologyOwnerPrincipal)
getHadoopCredentials
in class AbstractHadoopNimbusPluginAutoCreds
protected byte[] getHadoopCredentials(Map<String,Object> conf, String topologyOwnerPrincipal)
getHadoopCredentials
in class AbstractHadoopNimbusPluginAutoCreds
protected byte[] getHadoopCredentials(Map<String,Object> conf, org.apache.hadoop.conf.Configuration configuration, String topologySubmitterUser)
public org.apache.hadoop.hive.conf.HiveConf createHiveConf(String metaStoreUri, String hiveMetaStorePrincipal) throws IOException
IOException
public void doRenew(Map<String,String> credentials, Map<String,Object> topologyConf, String topologyOwnerPrincipal)
doRenew
in class AbstractHadoopNimbusPluginAutoCreds
public String getCredentialKey(String configKey)
CredentialKeyProvider
Copyright © 2023 The Apache Software Foundation. All rights reserved.