[ https://issues.apache.org/jira/browse/SPARK-52334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tongwei updated SPARK-52334: ---------------------------- Description: When submitting a Spark job with the {{--files}} option and also calling {{SparkContext.addFile()}} for a file with the same name in the application code, Spark throws an exception due to a file registration conflict. *Reproduction Steps:* # Submit a Spark application using {{spark-submit}} with the {{--files}} option: {code:java} bin/spark-submit \ --files s3://bucket/a.text \ --class testDemo \ app.jar {code} # In the {{testDemo}} application code, call: # was: When submitting a Spark job with the {{--files}} option and also calling {{SparkContext.addFile()}} for a file with the same name in the application code, Spark throws an exception due to a file registration conflict. *Reproduction Steps:* # Submit a Spark application using {{spark-submit}} with the {{--files}} option: {code:java} bin/spark-submit \ --files s3://bucket/a.text \ --class testDemo \ app.jar {code} # In the {{testDemo}} application code, call: # > In Kubernetes mode, update all files, jars, archiveFiles, and pyFiles to > reference the working directory after they are downloaded. > ----------------------------------------------------------------------------------------------------------------------------------- > > Key: SPARK-52334 > URL: https://issues.apache.org/jira/browse/SPARK-52334 > Project: Spark > Issue Type: Bug > Components: Kubernetes, Spark Core > Affects Versions: 4.0.0, 3.5.5 > Reporter: Tongwei > Priority: Major > > When submitting a Spark job with the {{--files}} option and also calling > {{SparkContext.addFile()}} for a file with the same name in the application > code, Spark throws an exception due to a file registration conflict. > *Reproduction Steps:* > # Submit a Spark application using {{spark-submit}} with the {{--files}} > option: > {code:java} > bin/spark-submit \ --files s3://bucket/a.text \ --class testDemo \ app.jar > {code} > # In the {{testDemo}} application code, call: > # -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org