private void deleteAllLocalResources() {
    try {
      executorClassloader.close();
    } catch (Exception ex) {
      LOG.info("Failed to close the classloader", ex.getMessage());
    }
    resourcesByFn.clear();
    for (RefCountedResource rcr : localFiles.values()) {
      for (FunctionResource fr : rcr.resources) {
        // We ignore refcounts (and errors) for now.
        File file = new File(fr.getResourceURI());
        try {
          if (!file.delete()) {
            LOG.info("Failed to delete " + file);
          }
        } catch (Exception ex) {
          LOG.info("Failed to delete " + file + ": " + ex.getMessage());
        }
      }
    }
  }
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