> For the complete documentation index, see [llms.txt](https://alvintoh.gitbook.io/apache-2-0-spark-with-scala/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alvintoh.gitbook.io/apache-2-0-spark-with-scala/section-4-advanced-examples-of-spark-programs/23.-activity-find-the-most-popular-movie.md).

# 23. \[Activity] Find the Most Popular Movie

## MOST POPULAR MOVIE

### MovieLens Data Format Review

```
    User ID, Movie ID, Rating, Timestamp
    196, 242, 3, 881250949
    186, 302, 3, 891717742
    22 , 377, 1, 878887116
    244,  51, 2, 880606923
    166, 346, 1, 886397596
    290, 474, 4, 884182806
```

### Off To The Code

* Import PopularMovies.scala from resource folder into Eclipse-Scala IDE in SparkScala folder
* Import u.data from the resource folder into SparkScala folder to be used as the source file for PopularMovies.scala
* Run it and you should see the output
