0

I have a Maven project and I can't make it run:

Exception in thread "main" java.lang.ClassNotFoundException: Failed to load class for data source: com.databricks.spark.csv.

How to fix this in Maven?


PS: I know about this question, but I cannot use any additional options to spark-submit, except --class and --master.

Community
  • 1
  • 1
m0nhawk
  • 22,980
  • 9
  • 45
  • 73

1 Answers1

2

Try maven-shade-plugin in you pom it will create one shade jar with your all dependencies or classes. For more detail go through this link

Community
  • 1
  • 1
Kaushal
  • 3,237
  • 3
  • 29
  • 48