Modifier and Type | Class and Description |
---|---|
static class |
HiveConf.ConfVars
ConfVars.
|
Modifier and Type | Field and Description |
---|---|
protected String |
auxJars |
static HiveConf.ConfVars[] |
dbVars
dbVars are the parameters can be set per database.
|
protected String |
hiveJar |
static HiveConf.ConfVars[] |
metaConfVars
User configurable Metastore vars
|
static HiveConf.ConfVars[] |
metaVars
Metastore related options that the db is initialized against.
|
protected Properties |
origProp |
Constructor and Description |
---|
HiveConf() |
HiveConf(Class<?> cls) |
HiveConf(org.apache.hadoop.conf.Configuration other,
Class<?> cls) |
HiveConf(HiveConf other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addToRestrictList(String restrictListStr)
Append comma separated list of config vars to the restrict List
|
Properties |
getAllProperties() |
String |
getAuxJars() |
static boolean |
getBoolVar(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars var) |
static boolean |
getBoolVar(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars var,
boolean defaultVal) |
boolean |
getBoolVar(HiveConf.ConfVars var) |
Properties |
getChangedProperties() |
static String |
getColumnInternalName(int pos) |
static Map<String,String> |
getConfSystemProperties()
This method returns a mapping from config variable name to its value for all config variables
which have been set using System properties
|
static HiveConf.ConfVars |
getConfVars(String name) |
static float |
getFloatVar(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars var) |
static float |
getFloatVar(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars var,
float defaultVal) |
float |
getFloatVar(HiveConf.ConfVars var) |
URL |
getHiveDefaultLocation() |
static URL |
getHiveServer2SiteLocation() |
static URL |
getHiveSiteLocation() |
static int |
getIntVar(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars var) |
int |
getIntVar(HiveConf.ConfVars var) |
String |
getJar() |
static long |
getLongVar(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars var) |
static long |
getLongVar(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars var,
long defaultVal) |
long |
getLongVar(HiveConf.ConfVars var) |
static HiveConf.ConfVars |
getMetaConf(String name) |
static URL |
getMetastoreSiteLocation() |
static int |
getPositionFromInternalName(String internalName) |
boolean |
getSparkConfigUpdated() |
static long |
getTimeVar(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars var,
TimeUnit outUnit) |
long |
getTimeVar(HiveConf.ConfVars var,
TimeUnit outUnit) |
String |
getUser() |
static String |
getVar(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars var) |
static String |
getVar(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars var,
String defaultVal) |
String |
getVar(HiveConf.ConfVars var) |
boolean |
isHiddenConfig(String name) |
static boolean |
isLoadHiveServer2Config() |
static boolean |
isLoadMetastoreConfig() |
void |
logVars(PrintStream ps) |
void |
setAuxJars(String auxJars) |
static void |
setBoolVar(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars var,
boolean val) |
void |
setBoolVar(HiveConf.ConfVars var,
boolean val) |
static void |
setFloatVar(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars var,
float val) |
void |
setFloatVar(HiveConf.ConfVars var,
float val) |
static void |
setHiveSiteLocation(URL location) |
static void |
setIntVar(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars var,
int val) |
void |
setIntVar(HiveConf.ConfVars var,
int val) |
static void |
setLoadHiveServer2Config(boolean loadHiveServer2Config) |
static void |
setLoadMetastoreConfig(boolean loadMetastoreConfig) |
static void |
setLongVar(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars var,
long val) |
void |
setLongVar(HiveConf.ConfVars var,
long val) |
void |
setModifiableWhiteListRegex(String paramNameRegex)
Set white list of parameters that are allowed to be modified
|
void |
setSparkConfigUpdated(boolean isSparkConfigUpdated) |
static void |
setTimeVar(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars var,
long time,
TimeUnit timeunit) |
void |
setTimeVar(HiveConf.ConfVars var,
long time,
TimeUnit outUnit) |
static void |
setVar(org.apache.hadoop.conf.Configuration conf,
HiveConf.ConfVars var,
String val) |
void |
setVar(HiveConf.ConfVars var,
String val) |
static String |
stringFor(TimeUnit timeunit) |
void |
stripHiddenConfigurations(org.apache.hadoop.conf.Configuration conf)
Strips hidden config entries from configuration
|
static long |
toTime(String value,
TimeUnit inputUnit,
TimeUnit outUnit) |
static TimeUnit |
unitFor(String unit,
TimeUnit defaultUnit) |
void |
verifyAndSet(String name,
String value) |
addDefaultResource, addDeprecation, addDeprecation, addDeprecation, addDeprecation, addDeprecations, addResource, addResource, addResource, addResource, addResource, addResource, clear, dumpConfiguration, dumpDeprecatedKeys, get, get, getBoolean, getClass, getClass, getClassByName, getClassByNameOrNull, getClasses, getClassLoader, getConfResourceAsInputStream, getConfResourceAsReader, getDouble, getEnum, getFile, getFinalParameters, getFloat, getInstances, getInt, getInts, getLocalPath, getLong, getLongBytes, getPassword, getPasswordFromConfig, getPasswordFromCredentialProviders, getPattern, getPropertySources, getProps, getRange, getRaw, getResource, getSocketAddr, getSocketAddr, getStringCollection, getStrings, getStrings, getTimeDuration, getTrimmed, getTrimmed, getTrimmedStringCollection, getTrimmedStrings, getTrimmedStrings, getValByRegex, hasWarnedDeprecation, isDeprecated, iterator, main, readFields, reloadConfiguration, set, set, setBoolean, setBooleanIfUnset, setClass, setClassLoader, setDeprecatedProperties, setDouble, setEnum, setFloat, setIfUnset, setInt, setLong, setPattern, setQuietMode, setSocketAddr, setStrings, setTimeDuration, size, toString, unset, updateConnectAddr, updateConnectAddr, write, writeXml, writeXml
protected String hiveJar
protected Properties origProp
protected String auxJars
public static final HiveConf.ConfVars[] metaVars
public static final HiveConf.ConfVars[] metaConfVars
public static final HiveConf.ConfVars[] dbVars
public HiveConf()
public HiveConf(Class<?> cls)
public HiveConf(org.apache.hadoop.conf.Configuration other, Class<?> cls)
public HiveConf(HiveConf other)
public boolean getSparkConfigUpdated()
public void setSparkConfigUpdated(boolean isSparkConfigUpdated)
public void verifyAndSet(String name, String value) throws IllegalArgumentException
IllegalArgumentException
public boolean isHiddenConfig(String name)
public static int getIntVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var)
public static void setIntVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var, int val)
public int getIntVar(HiveConf.ConfVars var)
public void setIntVar(HiveConf.ConfVars var, int val)
public static long getTimeVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var, TimeUnit outUnit)
public static void setTimeVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var, long time, TimeUnit timeunit)
public long getTimeVar(HiveConf.ConfVars var, TimeUnit outUnit)
public void setTimeVar(HiveConf.ConfVars var, long time, TimeUnit outUnit)
public static long getLongVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var)
public static long getLongVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var, long defaultVal)
public static void setLongVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var, long val)
public long getLongVar(HiveConf.ConfVars var)
public void setLongVar(HiveConf.ConfVars var, long val)
public static float getFloatVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var)
public static float getFloatVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var, float defaultVal)
public static void setFloatVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var, float val)
public float getFloatVar(HiveConf.ConfVars var)
public void setFloatVar(HiveConf.ConfVars var, float val)
public static boolean getBoolVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var)
public static boolean getBoolVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var, boolean defaultVal)
public static void setBoolVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var, boolean val)
public boolean getBoolVar(HiveConf.ConfVars var)
public void setBoolVar(HiveConf.ConfVars var, boolean val)
public static String getVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var)
public static String getVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var, String defaultVal)
public static void setVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var, String val)
public static HiveConf.ConfVars getConfVars(String name)
public static HiveConf.ConfVars getMetaConf(String name)
public String getVar(HiveConf.ConfVars var)
public void setVar(HiveConf.ConfVars var, String val)
public void logVars(PrintStream ps)
public Properties getAllProperties()
public static Map<String,String> getConfSystemProperties()
public Properties getChangedProperties()
public String getJar()
public String getAuxJars()
public void setAuxJars(String auxJars)
auxJars
- the auxJars to setpublic URL getHiveDefaultLocation()
public static void setHiveSiteLocation(URL location)
public static URL getHiveSiteLocation()
public static URL getMetastoreSiteLocation()
public static URL getHiveServer2SiteLocation()
public String getUser() throws IOException
IOException
public static String getColumnInternalName(int pos)
public static int getPositionFromInternalName(String internalName)
public void addToRestrictList(String restrictListStr)
restrictListStr
- @InterfaceAudience.LimitedPrivate(value="Currently only for use by HiveAuthorizer") public void setModifiableWhiteListRegex(String paramNameRegex)
paramNameRegex
- public void stripHiddenConfigurations(org.apache.hadoop.conf.Configuration conf)
public static boolean isLoadMetastoreConfig()
public static void setLoadMetastoreConfig(boolean loadMetastoreConfig)
public static boolean isLoadHiveServer2Config()
public static void setLoadHiveServer2Config(boolean loadHiveServer2Config)
Copyright © 2017 The Apache Software Foundation. All rights reserved.