private void setUpLoggerConfig() throws Exception {
    // logger can be a resource stream or a real file (cannot use copy)
    URL logger = conf.getResource(LlapConstants.LOG4j2_PROPERTIES_FILE);
    if (null == logger) {
      throw new Exception("Unable to find required config file: llap-daemon-log4j2.properties");
    }
    InputStream loggerContent = logger.openStream();
    IOUtils.copyBytes(loggerContent,
        rawFs.create(new Path(confDir, "llap-daemon-log4j2.properties"), true), conf, true);
  }
Copy config files for the tarball.
llap-server/src/java/org/apache/hadoop/hive/llap/cli/service/AsyncTaskCopyConfigs.java