I'm doing a scala-spark app that gets data from MySQL. If I run from eclipse it works. However, if I create the .jar and execute it with spark-submit does not work, and an error appears:
Exception in thread "main" java.sql.SQLException: No suitable driver
So I think there are not dependencies at the created jar. I think I'm not setting the right plugin to compile with dependencies at pom.xml. Do you know which one is the plugin to do it?
Thank you, regards!