You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jungtaek Lim (Jira)" <ji...@apache.org> on 2023/11/08 03:13:00 UTC

[jira] [Updated] (SPARK-45115) No way to exclude jars setting to classpath while doing spark-submit

     [ https://issues.apache.org/jira/browse/SPARK-45115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jungtaek Lim updated SPARK-45115:
---------------------------------
    Priority: Major  (was: Blocker)

> No way to exclude jars setting to classpath while doing spark-submit
> --------------------------------------------------------------------
>
>                 Key: SPARK-45115
>                 URL: https://issues.apache.org/jira/browse/SPARK-45115
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Submit
>    Affects Versions: 3.4.1
>            Reporter: Sumanto Pal
>            Priority: Major
>   Original Estimate: 336h
>  Remaining Estimate: 336h
>
> The challenge is whenever you do spark-submit to start the application, the jars present in spark home directory gets added to classpath automatically and there is no way to exclude specific jars from there. For example, we dont want slf4j jars present in spark home directory to be setted in classpath as in codebase slf4j is already there. Thus it causes conflicts in jars. This forces user to change there codebase to support spark-submit or to manually remove the jars from spark-home directory. This i believe is not right practice as we deviating from using spark as it supposed to be and it causes unfixable behaviors at various instances with no clue. Example linkages errors are common with the jar conflicts. 
>  
> There is detailed stackoverflow question on this issue. 
> refer : https://stackoverflow.com/questions/76476618/linkageerror-facing-while-doing-spark-submit
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org