I am trying to execute a spark application using spark-submit.
c:\temp>spark-submit --master yarn ./SparkExamples.jar --class com.examples.WordCount
Error: No main class set in JAR; please specify one with --class
Run with --help for usage help or --verbose for debug output
The main class file is existing in the jar file. I also checked there is a MANIFEST.MF file which holds the main class name.
Manifest-Version: 1.0
Main-Class: com.examples.WordCount
what am I missing?
Try providing --class parameter first before ./SparkExamples.jar
spark-submit --master yarn --class com.examples.WordCount ./SparkExamples.jar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With