{
List<HiveDriverRunHook> hooks =
getHooks(hiveConf, HiveConf.ConfVars.HIVE_DRIVER_RUN_HOOKS,
HiveDriverRunHook.class);
HiveDriverRunHookContext context =
new HiveDriverRunHookContextImpl(hiveConf, "no_cmd");
for (HiveDriverRunHook hook : hooks) {
LOG.info("runPreHooksThrows: Running hook " + hook + " of class " +
hook.getClass());
hook.preDriverRun(context);
}