I am trying to submit a spark job to AWS EMR cluster using AWS console. But it fails with:
Cannot load main class from JAR
. The job runs successfully when I specify main class as --class
in Arguments
option in AWS EMR Console-> Add Step.
On the local machine, the job seems to work perfectly fine when no main class is specified as below:
./spark-submit /home/astro/spark-programs/SpotEMR/MyJob.jar
I have set main class to jar using run configuration. The main reason to avoid passing main class as --class
is, I have to run this job in AWS Datapipeline using EMRAcivity. In AWS Datapipeline, currently there is no way to specify a main class to a job being submitted.
Any help will be appreciated.