I am trying to run my Spark Job using IntelliJ and it ran successfully while working without jar.
Now I am trying to build a jar to run it in some other environment.
After creating the Jar
I try to run it and had encountered an error:
/usr/lib/jvm/java-8-openjdk-amd64/bin/java -Dfile.encoding=UTF-8 -jar /home/aims/workspace/second/target/second-1.0-SNAPSHOT.jar local[*] thrift://localhost:9083
no main manifest attribute, in /home/aims/workspace/second/target/second-1.0-SNAPSHOT.jar
Process finished with exit code 1
I tried to change the META-INF
to resources
folder. Please check it as I have already gone through many suggestions on Stackoverflow related to this particular problem and not a single suggestion helped me. Hence, I am writing this question here. Following it the current location of META-INF
/home/aims/workspace/second/src/main/resources/META-INF
Kindly, let me know how I can run my job successfully using the jar?