This is a very very simple spark application. In this application, we show how to use gradle shadowjar plugin to create a shadow(uber) jar and then submit it to the spark cluster.
-
Build the Shardow Jar (Uber Jar)
./gradlew shadowJar
-
Submit the jar
$SPARK_HOME/bin/spark-submit --master=<spark-master> build/libs/spark-wordcount-all.jar
Good luck and happy Sparking!!!