@InterfaceAudience.Private public class HiveConfUtil extends Object
Constructor and Description |
---|
HiveConfUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
dumpConfig(org.apache.hadoop.conf.Configuration originalConf,
StringBuilder sb) |
static StringBuilder |
dumpConfig(HiveConf conf)
Dumps all HiveConf for debugging.
|
static Set<String> |
getHiddenSet(org.apache.hadoop.conf.Configuration configuration)
Getting the set of the hidden configurations
|
static String |
getJobCredentialProviderPassword(org.apache.hadoop.conf.Configuration conf) |
static boolean |
isEmbeddedMetaStore(String msUri)
Check if metastore is being used in embedded mode.
|
static void |
stripConfigurations(org.apache.hadoop.conf.Configuration conf,
Set<String> hiddenSet)
Strips hidden config entries from configuration
|
static void |
updateJobCredentialProviders(org.apache.hadoop.conf.Configuration jobConf)
Updates the job configuration with the job specific credential provider information available
in the HiveConf.It uses the environment variables HADOOP_CREDSTORE_PASSWORD or
HIVE_JOB_CREDSTORE_PASSWORD to get the custom password for all the keystores configured in the
provider path.
|
public static boolean isEmbeddedMetaStore(String msUri)
msUri
- - metastore server uripublic static StringBuilder dumpConfig(HiveConf conf)
public static Set<String> getHiddenSet(org.apache.hadoop.conf.Configuration configuration)
configuration
- The original configurationpublic static void stripConfigurations(org.apache.hadoop.conf.Configuration conf, Set<String> hiddenSet)
conf
- The configuration to strip fromhiddenSet
- The values to strippublic static void dumpConfig(org.apache.hadoop.conf.Configuration originalConf, StringBuilder sb)
public static void updateJobCredentialProviders(org.apache.hadoop.conf.Configuration jobConf)
jobConf
- - job specific configurationpublic static String getJobCredentialProviderPassword(org.apache.hadoop.conf.Configuration conf)
Copyright © 2021 The Apache Software Foundation. All rights reserved.