public final class HiveUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Modifier and Type | Method and Description |
|---|---|
static String |
escapeString(String str) |
static org.apache.hadoop.io.Text |
escapeText(org.apache.hadoop.io.Text text) |
static HiveAuthenticationProvider |
getAuthenticator(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars authenticatorConfKey) |
static HiveAuthorizationProvider |
getAuthorizeProviderManager(org.apache.hadoop.conf.Configuration conf,
String authzClassName,
HiveAuthenticationProvider authenticator,
boolean nullIfOtherClass)
Create a new instance of HiveAuthorizationProvider
|
static HiveAuthorizerFactory |
getAuthorizerFactory(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars authorizationProviderConfKey)
Return HiveAuthorizerFactory used by new authorization plugin interface.
|
static String |
getLocalDirList(org.apache.hadoop.conf.Configuration conf) |
static List<HiveMetastoreAuthorizationProvider> |
getMetaStoreAuthorizeProviderManagers(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars authorizationProviderConfKey,
HiveAuthenticationProvider authenticator) |
static String |
getReplPolicy(String dbName,
String tableName) |
static HiveStorageHandler |
getStorageHandler(org.apache.hadoop.conf.Configuration conf,
String className) |
static String |
lightEscapeString(String str) |
static int |
unescapeText(org.apache.hadoop.io.Text text) |
static String |
unparseIdentifier(String identifier)
Regenerate an identifier as part of unparsing it back to SQL text.
|
static String |
unparseIdentifier(String identifier,
org.apache.hadoop.conf.Configuration conf) |
public static org.apache.hadoop.io.Text escapeText(org.apache.hadoop.io.Text text)
public static int unescapeText(org.apache.hadoop.io.Text text)
public static String unparseIdentifier(String identifier)
public static String unparseIdentifier(String identifier, org.apache.hadoop.conf.Configuration conf)
public static HiveStorageHandler getStorageHandler(org.apache.hadoop.conf.Configuration conf, String className) throws HiveException
HiveExceptionpublic static List<HiveMetastoreAuthorizationProvider> getMetaStoreAuthorizeProviderManagers(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars authorizationProviderConfKey, HiveAuthenticationProvider authenticator) throws HiveException
HiveExceptionpublic static HiveAuthorizationProvider getAuthorizeProviderManager(org.apache.hadoop.conf.Configuration conf, String authzClassName, HiveAuthenticationProvider authenticator, boolean nullIfOtherClass) throws HiveException
conf - authzClassName - - authorization provider class nameauthenticator - nullIfOtherClass - - return null if configuration
does not point to a HiveAuthorizationProvider subclassHiveExceptionpublic static HiveAuthorizerFactory getAuthorizerFactory(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars authorizationProviderConfKey) throws HiveException
conf - authorizationProviderConfKey - HiveException - if HiveAuthorizerFactory specified in configuration could notpublic static HiveAuthenticationProvider getAuthenticator(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars authenticatorConfKey) throws HiveException
HiveExceptionpublic static String getLocalDirList(org.apache.hadoop.conf.Configuration conf)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.