You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Patrick Wendell (JIRA)" <ji...@apache.org> on 2014/09/09 06:43:28 UTC
[jira] [Updated] (SPARK-3450) Enable specifiying the --jars CLI
option multiple times
[ https://issues.apache.org/jira/browse/SPARK-3450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Wendell updated SPARK-3450:
-----------------------------------
Shepherd: (was: Marcelo Vanzin)
> Enable specifiying the --jars CLI option multiple times
> -------------------------------------------------------
>
> Key: SPARK-3450
> URL: https://issues.apache.org/jira/browse/SPARK-3450
> Project: Spark
> Issue Type: Improvement
> Components: Deploy
> Affects Versions: 1.0.2
> Reporter: wolfgang hoschek
>
> spark-submit should support specifiying the --jars option multiple time, e.g. --jars foo.jar,bar.jar --jars baz.jar,oops.jar should be equivalent to --jars foo.jar,bar.jar,baz.jar,oops.jar
> This would allow using wrapper scripts that simplify usage for enterprise customers along the following lines:
> {code}
> my-spark-submit.sh:
> jars=
> for i in /opt/myapp/*.jar; do
> if [ $i -gt 0]
> then
> jars="$jars,"
> fi
> jars="$jars$i"
> done
> spark-submit --jars "$jars" "$@"
> {code}
> Example usage:
> {code}
> my-spark-submit.sh --jars myUserDefinedFunction.jar
> {code}
> The relevant enhancement code might go into SparkSubmitArguments.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org