@Override
  public Void call() throws Exception {
    // UDFs
    final Set<String> allowedUdfs;

    if (HiveConf.getBoolVar(conf, HiveConf.ConfVars.LLAP_ALLOW_PERMANENT_FNS)) {
      synchronized (fs) {
        allowedUdfs = downloadPermanentFunctions();
      }
    } else {
      allowedUdfs = Collections.emptySet();
    }

    OutputStream os = rawFs.create(new Path(confDir, StaticPermanentFunctionChecker.PERMANENT_FUNCTIONS_LIST));
    OutputStreamWriter osw = new OutputStreamWriter(os, Charset.defaultCharset());
    PrintWriter udfStream = new PrintWriter(osw);
    for (String udfClass : allowedUdfs) {
      udfStream.println(udfClass);
    }

    udfStream.close();
    return null;
  }
Create the list of allowed UDFs for the tarball.
llap-server/src/java/org/apache/hadoop/hive/llap/cli/service/AsyncTaskCreateUdfFile.java