Have you tried to build a uber jar to bundle all your classes together?
> On Jun 27, 2018, at 01:27, amin mohebbi <aminn_...@yahoo.com.INVALID > <mailto:aminn_...@yahoo.com.INVALID>> wrote: > > Could you please help me to understand how I should submit my spark > application ? > > I have used this connector (pygmalios/reactiveinflux-spark > <https://github.com/pygmalios/reactiveinflux-spark>) to connect spark with > influxdb. > > > pygmalios/reactiveinflux-spark > reactiveinflux-spark - Connector between Spark and InfluxDB. > <https://github.com/pygmalios/reactiveinflux-spark> > > > The code is working fine, but when I submit the jar file through spark-submit > I will face this error > > "Exception in thread "main" java.lang.NoClassDefFoundError: > com/pygmalios/reactiveinflux/ReactiveInfluxDbName" > > I submit like this : > spark-submit --jars > /home/sshuser/reactiveinflux-spark_2.10-1.4.0.10.0.5.1.jar sapn_2.11-1.0.jar > > Can you help to solve this issue? > > > Best Regards ....................................................... Amin > Mohebbi PhD candidate in Software Engineering at university of Malaysia > Tel : +60 18 2040 017 E-Mail : tp025...@ex.apiit.edu.my > <mailto:tp025...@ex.apiit.edu.my> amin_...@me.com > <mailto:amin_...@me.com>