Everything after the jar path is passed to the main class as parameters. So if it's not working you're probably doing something wrong in your code (that you haven't posted).
On Tue, Feb 28, 2017 at 7:05 AM, Joe Olson <jo4...@outlook.com> wrote: > For spark-submit, I know I can submit application level command line > parameters to my .jar. > > > However, can I prefix them with switches? My command line params are > processed in my applications using JCommander. I've tried several variations > of the below with no success. > > > An example of what I am trying to do is below in the --num-decimals > argument. > > > ./bin/spark-submit \ > --class org.apache.spark.examples.SparkPi \ > --master spark://207.184.161.138:7077 \ > --deploy-mode cluster \ > --supervise \ > --executor-memory 20G \ > --total-executor-cores 100 \ > /path/to/examples.jar \ > --num-decimals=1000 \ > --second-argument=Arg2 > > -- Marcelo --------------------------------------------------------------------- To unsubscribe e-mail: user-unsubscr...@spark.apache.org