private void writeConfigJson(JSONObject configs) throws Exception {
    try (FSDataOutputStream fsdos = fs.create(new Path(tmpDir, "config.json"));
         OutputStreamWriter w = new OutputStreamWriter(fsdos, Charset.defaultCharset())) {
      configs.write(w);
    }
  }
Creates the config json for llap start.
llap-server/src/java/org/apache/hadoop/hive/llap/cli/service/LlapConfigJsonCreator.java