Package org.apache.storm.hive.security
Class AutoHiveNimbus
- java.lang.Object
- 
- org.apache.storm.common.AbstractHadoopNimbusPluginAutoCreds
- 
- org.apache.storm.hive.security.AutoHiveNimbus
 
 
- 
- All Implemented Interfaces:
- CredentialKeyProvider,- Shutdownable,- ICredentialsRenewer,- INimbusCredentialPlugin
 
 @Deprecated(since="2.7.1", forRemoval=true) public class AutoHiveNimbus extends AbstractHadoopNimbusPluginAutoCreds Deprecated, for removal: This API element is subject to removal in a future version.Auto credentials nimbus plugin for Hive implementation. This class automatically gets Hive delegation tokens and push it to user's topology.
- 
- 
Field SummaryFields Modifier and Type Field Description StringhiveKeytabDeprecated, for removal: This API element is subject to removal in a future version.StringhivePrincipalDeprecated, for removal: This API element is subject to removal in a future version.StringmetaStoreURIDeprecated, for removal: This API element is subject to removal in a future version.- 
Fields inherited from class org.apache.storm.common.AbstractHadoopNimbusPluginAutoCredsCONFIG_KEY_RESOURCES
 
- 
 - 
Constructor SummaryConstructors Constructor Description AutoHiveNimbus()Deprecated, for removal: This API element is subject to removal in a future version.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.hadoop.hive.conf.HiveConfcreateHiveConf(String metaStoreUri, String hiveMetaStorePrincipal)Deprecated, for removal: This API element is subject to removal in a future version.voiddoPrepare(Map<String,Object> conf)Deprecated, for removal: This API element is subject to removal in a future version.Prepare the plugin.voiddoRenew(Map<String,String> credentials, Map<String,Object> topologyConf, String topologyOwnerPrincipal)Deprecated, for removal: This API element is subject to removal in a future version.protected StringgetConfigKeyString()Deprecated, for removal: This API element is subject to removal in a future version.The lookup key for the config key string.StringgetCredentialKey(String configKey)Deprecated, for removal: This API element is subject to removal in a future version.The lookup key for the config key string.protected byte[]getHadoopCredentials(Map<String,Object> conf, String topologyOwnerPrincipal)Deprecated, for removal: This API element is subject to removal in a future version.protected byte[]getHadoopCredentials(Map<String,Object> conf, String configKey, String topologyOwnerPrincipal)Deprecated, for removal: This API element is subject to removal in a future version.protected byte[]getHadoopCredentials(Map<String,Object> conf, org.apache.hadoop.conf.Configuration configuration, String topologySubmitterUser)Deprecated, for removal: This API element is subject to removal in a future version.voidshutdown()Deprecated, for removal: This API element is subject to removal in a future version.- 
Methods inherited from class org.apache.storm.common.AbstractHadoopNimbusPluginAutoCredsfillHadoopConfiguration, getConfigKeys, getCredentials, populateCredentials, prepare, renew
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.storm.security.INimbusCredentialPluginpopulateCredentials
 
- 
 
- 
- 
- 
Field Detail- 
hiveKeytabpublic String hiveKeytab Deprecated, for removal: This API element is subject to removal in a future version.
 - 
hivePrincipalpublic String hivePrincipal Deprecated, for removal: This API element is subject to removal in a future version.
 - 
metaStoreURIpublic String metaStoreURI Deprecated, for removal: This API element is subject to removal in a future version.
 
- 
 - 
Method Detail- 
doPreparepublic void doPrepare(Map<String,Object> conf) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractHadoopNimbusPluginAutoCredsPrepare the plugin.- Specified by:
- doPreparein class- AbstractHadoopNimbusPluginAutoCreds
- Parameters:
- conf- the storm cluster conf set via storm.yaml
 
 - 
getConfigKeyStringprotected String getConfigKeyString() Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractHadoopNimbusPluginAutoCredsThe lookup key for the config key string.- Specified by:
- getConfigKeyStringin class- AbstractHadoopNimbusPluginAutoCreds
- Returns:
- the config key string
 
 - 
shutdownpublic void shutdown() Deprecated, for removal: This API element is subject to removal in a future version.
 - 
getHadoopCredentialsprotected byte[] getHadoopCredentials(Map<String,Object> conf, String configKey, String topologyOwnerPrincipal) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- getHadoopCredentialsin class- AbstractHadoopNimbusPluginAutoCreds
 
 - 
getHadoopCredentialsprotected byte[] getHadoopCredentials(Map<String,Object> conf, String topologyOwnerPrincipal) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- getHadoopCredentialsin class- AbstractHadoopNimbusPluginAutoCreds
 
 - 
getHadoopCredentialsprotected byte[] getHadoopCredentials(Map<String,Object> conf, org.apache.hadoop.conf.Configuration configuration, String topologySubmitterUser) Deprecated, for removal: This API element is subject to removal in a future version.
 - 
createHiveConfpublic org.apache.hadoop.hive.conf.HiveConf createHiveConf(String metaStoreUri, String hiveMetaStorePrincipal) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
- IOException
 
 - 
doRenewpublic void doRenew(Map<String,String> credentials, Map<String,Object> topologyConf, String topologyOwnerPrincipal) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- doRenewin class- AbstractHadoopNimbusPluginAutoCreds
 
 - 
getCredentialKeypublic String getCredentialKey(String configKey) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CredentialKeyProviderThe lookup key for the config key string.- Returns:
- the config key string
 
 
- 
 
-