org.apache.hadoop.hive.conf
Class HiveConf

java.lang.Object
  extended by org.apache.hadoop.conf.Configuration
      extended by org.apache.hadoop.hive.conf.HiveConf
All Implemented Interfaces:
Iterable<Map.Entry<String,String>>, org.apache.hadoop.io.Writable

public class HiveConf
extends org.apache.hadoop.conf.Configuration

Hive Configuration


Nested Class Summary
static class HiveConf.ConfVars
           
 
Nested classes/interfaces inherited from class org.apache.hadoop.conf.Configuration
org.apache.hadoop.conf.Configuration.IntegerRanges
 
Field Summary
protected  String auxJars
           
protected  String hiveJar
           
static HiveConf.ConfVars[] metaVars
          metastore related options that the db is initialized against
protected  Properties origProp
           
 
Constructor Summary
HiveConf()
           
HiveConf(Class<?> cls)
           
HiveConf(org.apache.hadoop.conf.Configuration other, Class<?> cls)
           
 
Method Summary
 void applySystemProperties()
           
 Properties getAllProperties()
           
 String getAuxJars()
           
static boolean getBoolVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var)
           
 boolean getBoolVar(HiveConf.ConfVars var)
           
 Properties getChangedProperties()
           
static String getColumnInternalName(int pos)
           
static float getFloatVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var)
           
 float getFloatVar(HiveConf.ConfVars var)
           
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)
           
 long getLongVar(HiveConf.ConfVars var)
           
 String getUser()
           
static String getVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var)
           
 String getVar(HiveConf.ConfVars var)
           
 void logVars(PrintStream ps)
           
 void setAuxJars(String auxJars)
           
static void setVar(org.apache.hadoop.conf.Configuration conf, HiveConf.ConfVars var, String val)
           
 void setVar(HiveConf.ConfVars var, String val)
           
 
Methods inherited from class org.apache.hadoop.conf.Configuration
addResource, addResource, addResource, addResource, clear, get, get, getBoolean, getClass, getClass, getClassByName, getClasses, getClassLoader, getConfResourceAsInputStream, getConfResourceAsReader, getFile, getFloat, getInt, getLocalPath, getLong, getRange, getRaw, getResource, getStringCollection, getStrings, getStrings, iterator, main, readFields, reloadConfiguration, set, setBoolean, setClass, setClassLoader, setInt, setLong, setQuietMode, setStrings, size, toString, write, writeXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hiveJar

protected String hiveJar

origProp

protected Properties origProp

auxJars

protected String auxJars

metaVars

public static final HiveConf.ConfVars[] metaVars
metastore related options that the db is initialized against

Constructor Detail

HiveConf

public HiveConf()

HiveConf

public HiveConf(Class<?> cls)

HiveConf

public HiveConf(org.apache.hadoop.conf.Configuration other,
                Class<?> cls)
Method Detail

getIntVar

public static int getIntVar(org.apache.hadoop.conf.Configuration conf,
                            HiveConf.ConfVars var)

getIntVar

public int getIntVar(HiveConf.ConfVars var)

getLongVar

public static long getLongVar(org.apache.hadoop.conf.Configuration conf,
                              HiveConf.ConfVars var)

getLongVar

public long getLongVar(HiveConf.ConfVars var)

getFloatVar

public static float getFloatVar(org.apache.hadoop.conf.Configuration conf,
                                HiveConf.ConfVars var)

getFloatVar

public float getFloatVar(HiveConf.ConfVars var)

getBoolVar

public static boolean getBoolVar(org.apache.hadoop.conf.Configuration conf,
                                 HiveConf.ConfVars var)

getBoolVar

public boolean getBoolVar(HiveConf.ConfVars var)

getVar

public static String getVar(org.apache.hadoop.conf.Configuration conf,
                            HiveConf.ConfVars var)

setVar

public static void setVar(org.apache.hadoop.conf.Configuration conf,
                          HiveConf.ConfVars var,
                          String val)

getVar

public String getVar(HiveConf.ConfVars var)

setVar

public void setVar(HiveConf.ConfVars var,
                   String val)

logVars

public void logVars(PrintStream ps)

applySystemProperties

public void applySystemProperties()

getChangedProperties

public Properties getChangedProperties()

getAllProperties

public Properties getAllProperties()

getJar

public String getJar()

getAuxJars

public String getAuxJars()
Returns:
the auxJars

setAuxJars

public void setAuxJars(String auxJars)
Parameters:
auxJars - the auxJars to set

getUser

public String getUser()
               throws IOException
Returns:
the user name set in hadoop.job.ugi param or the current user from System
Throws:
IOException

getColumnInternalName

public static String getColumnInternalName(int pos)


Copyright © 2009 The Apache Software Foundation