You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "wolfgang hoschek (JIRA)" <ji...@apache.org> on 2014/09/09 05:32:28 UTC

[jira] [Created] (SPARK-3450) Enable specifiying the --jars CLI option multiple times

wolfgang hoschek created SPARK-3450:
---------------------------------------

             Summary: 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