GitPedia

Movies Analytics in Spark and Scala

Data cleaning, pre-processing, and Analytics on a million movies using Spark and Scala.

From Thomas-George-T·Updated March 16, 2026·View on GitHub·

Solving analytical questions on the semi-structured [MovieLens dataset](https://grouplens.org/datasets/movielens/1m/) containing a million records using Spark and Scala. This features the use of Spark RDD, Spark SQL and Spark Dataframes executed on Spark-Shell (REPL) using Scala API. We aim to draw useful insights about users and movies by leveraging different forms of Spark APIs. The project is written primarily in Scala, distributed under the Apache License 2.0 license, first published in 2018. Key topics include: analytics, big-data, big-data-analytics, big-data-projects, case-study.

GitHub
GitHub top language
GitHub language count
GitHub last commit
ViewCount

Overview

Solving analytical questions on the semi-structured MovieLens dataset containing a million records using Spark and Scala. This features the use of Spark RDD, Spark SQL and Spark Dataframes executed on Spark-Shell (REPL) using Scala API. We aim to draw useful insights about users and movies by leveraging different forms of Spark APIs.

Table of Contents

Major Components

<p align="center"> <a href="#"> <img src="https://upload.wikimedia.org/wikipedia/commons/f/f3/Apache_Spark_logo.svg" alt="Apache Spark Logo" title="Apache Spark" width=275 hspace=80 /> </a> <a href="#"> <img src="https://raw.githubusercontent.com/Thomas-George-T/Thomas-George-T/master/assets/scala.svg" alt="Scala" title="Scala" width ="90" /> </a> </p>

Environment

  • Linux (Ubuntu 15.04)
  • Hadoop 2.7.2
  • Spark 2.0.2
  • Scala 2.11

Installation steps

  1. Simply clone the repository

    git clone https://github.com/Thomas-George-T/Movies-Analytics-in-Spark-and-Scala.git
    
  2. In the repo, Navigate to Spark RDD, Spark SQL or Spark Dataframe locations as needed.

  3. Run the execute script to view results

    sh execute.sh
    
  4. The execute.sh will pass the scala code through spark-shell and then display the findings in the terminal from the results folder.

Analytical Queries

Spark RDD

Spark SQL

Spark DataFrames

Miscellaneous

Note: The results were collected and repartitioned into the same text file: This is not a recommended practice since performance is highly impacted but it is done here for the sake of readability.

Mentions

This project was featured on Data Machina Issue #130 listed at number 3 under ScalaTOR. Thank you for the listing

License

This repository is licensed under Apache License 2.0 - see License for more details

Contributors

Showing top 1 contributor by commit count.

View all contributors on GitHub →

This article is auto-generated from Thomas-George-T/Movies-Analytics-in-Spark-and-Scala via the GitHub API.Last fetched: 6/20/2026