private void runWorkThread() {
    while (true) {
      if (isClosed) {
        deleteAllLocalResources();
        return;
      }
      LocalizerWork lw = null;
      try {
        lw = workQueue.take();
      } catch (InterruptedException ex) {
        LOG.debug("Localizer thread interrupted");
        isClosed = true;
      }
      if (isClosed) {
        deleteAllLocalResources();
        return;
      }
      try {
        lw.run(this);
      } catch (InterruptedException ex) {
        LOG.debug("Localizer thread interrupted");
        isClosed = true;
      } catch (Exception ex) {
        LOG.error("Failed to run " + lw, ex);
      }
    }
  }
This class localizes and manages jars for the functions allowed inside LLAP.
llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/FunctionLocalizer.java