public class HookUtils extends Object
Constructor and Description |
---|
HookUtils() |
Modifier and Type | Method and Description |
---|---|
static <T extends Hook> |
getHooks(HiveConf conf,
HiveConf.ConfVars hookConfVar,
Class<T> clazz)
Returns the hooks specified in a configuration variable.
|
static String |
redactLogString(HiveConf conf,
String logString) |
public static <T extends Hook> List<T> getHooks(HiveConf conf, HiveConf.ConfVars hookConfVar, Class<T> clazz) throws InstantiationException, IllegalAccessException, ClassNotFoundException
conf
- Configuration objecthookConfVar
- The configuration variable specifying a comma separated list
of the hook class names.clazz
- The super type of the hooks.ClassNotFoundException
IllegalAccessException
InstantiationException
public static String redactLogString(HiveConf conf, String logString) throws InstantiationException, IllegalAccessException, ClassNotFoundException
Copyright © 2017 The Apache Software Foundation. All rights reserved.