public void loadAuxJars() throws IOException {
    String[] jarPaths = StringUtils.split(sessionConf.getAuxJars(), ',');
    if (ArrayUtils.isEmpty(jarPaths)) {
      return;
    }
    AddToClassPathAction addAction = new AddToClassPathAction(
        SessionState.get().getConf().getClassLoader(), Arrays.asList(jarPaths)
        );
    final ClassLoader currentCLoader = AccessController.doPrivileged(addAction);
    sessionConf.setClassLoader(currentCLoader);
    Thread.currentThread().setContextClassLoader(currentCLoader);
  }
Load the jars under the path specified in hive.aux.jars.path property. Add
the jars to the classpath so the local task can refer to them.
@throws IOException
ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java