spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcelo Vanzin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-3450) Enable specifiying the --jars CLI option multiple times
Date Mon, 12 Jan 2015 18:45:34 GMT

    [ https://issues.apache.org/jira/browse/SPARK-3450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14273924#comment-14273924
] 

Marcelo Vanzin commented on SPARK-3450:
---------------------------------------

[~pwendell] if your only concern is complicating the parsing, this is probably a one-line
change in SparkSubmitArgument.scala. It wouldn't complicate anything.

> 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


Mime
View raw message