23. [Activity] Find the 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

Last updated