Skip to content

Commit

Permalink
[KYUUBI apache#1652] Improve tmp files cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
link3280 committed Mar 25, 2023
1 parent 8bdb672 commit 56413fe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ class FlinkProcessBuilder(
persistedConf.store(
new FileOutputStream(tmpKyuubiConf),
"persisted Kyuubi conf for Flink SQL engine")
tmpKyuubiConfFile.deleteOnExit()
engineTmpDir.toFile.deleteOnExit()
buffer += s"-Dyarn.ship-files=$tmpKyuubiConf"

buffer += s"-Dyarn.ship-files=$tmpKyuubiConf"
buffer += s"-Dyarn.tags=${conf.getOption(YARN_TAG_KEY).get}"
buffer += "-Dcontainerized.master.env.FLINK_CONF_DIR=."
buffer += "-c"
Expand Down

0 comments on commit 56413fe

Please sign in to comment.