public static void main(String[] args) throws Exception {
    LlapServiceCommandLine cl = new LlapServiceCommandLine(args);
    int ret = 0;
    try {
      ret = new LlapServiceDriver(cl).run();
    } catch (Throwable t) {
      System.err.println("Failed: " + t.getMessage());
      t.printStackTrace();
      ret = 3;
    } finally {
      LOG.info("LLAP service driver finished");
    }
    LOG.debug("Completed processing - exiting with " + ret);
    System.exit(ret);
  }
This is a working configuration for the instance to merge various variables.
It is not written out for llap server usage
llap-server/src/java/org/apache/hadoop/hive/llap/cli/service/LlapServiceDriver.java