Compiled in run on JDK 8.
spark-submit --class com.broodcamp.spark.WordCounter --master local target/spark-job-0.0.1-SNAPSHOT.jar src/main/resources/input.txt
*Now let's try to run Spark by processing data from https://grouplens.org/datasets/movielens/100k/.
UserId MovieId Rating TimeStamp
196 242 3 881250949
spark-submit --class com.broodcamp.spark.RatingsAverage --master local target/spark-job-0.0.1-SNAPSHOT.jar src/main/resources/u.data
spark-submit --class com.broodcamp.spark.WorstMovies --master local target/spark-job-0.0.1-SNAPSHOT.jar src/main/resources/u.data src/main/resources/u.item
spark-submit --class com.broodcamp.spark.WorstMoviesV2 --master local target/spark-job-0.0.1-SNAPSHOT.jar src/main/resources/u.data src/main/resources/u.item
spark-submit --class com.broodcamp.spark.NumberSquare --master local target/spark-job-0.0.1-SNAPSHOT.jar
spark-submit --class com.broodcamp.spark.MovieRecommendationsALS --master local target/spark-job-0.0.1-SNAPSHOT.jar src/main/resources/u-ml.data src/main/resources/u.item
spark-submit --class com.broodcamp.spark.MovieRecommendationsALS2 --master local target/spark-job-0.0.1-SNAPSHOT.jar src/main/resources/sample_movielens_ratings.txt src/main/resources/u.item
spark-submit --class com.broodcamp.spark.CassandraIntegration --packages com.datastax.spark:spark-cassandra-connector_2.11:2.4.0 --master local target/spark-job-0.0.1-SNAPSHOT.jar src/main/resources/u.user
spark-submit --class com.broodcamp.spark.MongoIntegration --packages org.mongodb.spark:mongo-spark-connector_2.11:2.4.0 --master local target/spark-job-0.0.1-SNAPSHOT.jar src/main/resources/u.user