spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hishamm <>
Subject spark-submit in deployment mode with the "--jars" option
Date Sun, 28 Jun 2015 17:44:14 GMT

I want to deploy my application on a standalone cluster. 
Spark submit acts in strange way. When I deploy the application in
*"client"* mode, everything works well and my application can see the
additional jar files. 

Here is the command:
>   spark-submit --master spark:// --deploy-mode  client
> --supervise --jars $(echo /myjars/*.jar | tr ' ' ',')  --class
> com.algorithm /my/path/algorithm.jar 

However, when I submit the command in *"cluster"* deployment mode. The
driver can not see the additional jars.
I always get *java.lang.ClassNotFoundException*

Here is the command:
>   spark-submit --master spark:// --deploy-mode cluster
> --supervise --jars $(echo /myjars/*.jar | tr ' ' ',')  --class
> com.algorithm /my/path/algorithm.jar 

Do I miss something ?


View this message in context:
Sent from the Apache Spark User List mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message