public void loadReloadableAuxJars() throws IOException {
    LOG.info("Reloading auxiliary JAR files");

    final String renewableJarPath = sessionConf.getVar(ConfVars.HIVE_RELOADABLE_JARS);
    // do nothing if this property is not specified or empty
    if (StringUtils.isBlank(renewableJarPath)) {
      LOG.warn("Configuration {} not specified", ConfVars.HIVE_RELOADABLE_JARS);
      return;
    }

    // load jars under the hive.reloadable.aux.jars.path
    final Set<String> jarPaths = FileUtils.getJarFilesByPath(renewableJarPath, sessionConf);

    LOG.info("Auxiliary JAR files discovered for reload: {}", jarPaths);

    // remove the previous renewable jars
    if (!preReloadableAuxJars.isEmpty()) {
      Utilities.removeFromClassPath(preReloadableAuxJars.toArray(new String[0]));
    }

    if (!jarPaths.isEmpty()) {
      AddToClassPathAction addAction = new AddToClassPathAction(
          SessionState.get().getConf().getClassLoader(), jarPaths);
      final ClassLoader currentCLoader = AccessController.doPrivileged(addAction);
      sessionConf.setClassLoader(currentCLoader);
      Thread.currentThread().setContextClassLoader(currentCLoader);
    }

    preReloadableAuxJars.clear();
    preReloadableAuxJars.addAll(jarPaths);
  }
Reload the jars under the path specified in hive.reloadable.aux.jars.path property.

@throws IOException
ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java