taowenjun opened a new issue, #13386:
URL: https://github.com/apache/seatunnel/issues/13386

   ### Search before asking
   I searched open and closed issues and PRs for plugin tarballs, plugin 
directories and Spark submission isolation. #9650 concerns connector plugin 
loading, while #1739 and #3458 report archive-path permission errors; none 
provides per-submission archive staging.
   
   ### Problem
   In Spark cluster deploy mode, `SparkStarter` writes `Common.pluginRootDir()` 
to the shared `Common.pluginTarball()` path, then includes that path in 
`--files`. Multiple submissions using the same SeaTunnel installation can write 
the same `plugins.tar.gz` while another submission is packaging or uploading 
it. The installation directory must also be writable.
   
   ### Proposed behavior
   Add an optional `SEATUNNEL_PLUGIN_TARBALL_DIR` environment variable to the 
Spark 2 and shared Spark 3/3.5 starters. When nonblank, use an existing 
directory and retain the archive basename `plugins.tar.gz`. Missing or 
non-directory paths fail command generation. Unset/blank values retain the 
current path; client deploy mode is unchanged.
   
   Callers must allocate a different directory per concurrent submission, keep 
it available until `spark-submit` finishes, and clean it afterward. No 
automatic directory creation or deletion is proposed: the starter JVM exits 
before the shell executes `spark-submit`.
   
   ### Validation
   Local development against dev 7029c0969a9f6ea9add7a11f9262f42fe2ce9da9: both 
starter variants compiled; 16 starter unit tests passed. Separate concurrent 
starter processes generated independent readable tarballs in directories 
containing spaces, and the files remained available after starter exit. This 
validates archive creation and command generation, not a real cluster upload or 
Spark data job.
   
   ### Willingness to contribute
   Yes, I am contributing this improvement to Apache SeaTunnel and will submit 
the focused implementation and English/Chinese documentation.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to