public void close() {
    isClosed = true;
    workThread.interrupt();
    try {
      workThread.join(1000); // Give it some time, then don't delay shutdown too much.
    } catch (InterruptedException e) {
      LOG.info("Interrupted during close");
    }
  }
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