Skip to content

dr4ke616/music-recommender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

music-recommender

Spark job music recommendation system. This was based on an exercise in the awesome book Advanced Analytics with Spark. This is not intended to be a production ready application but instead a learning exercise. Chapter 3 of the book, entitled Recommending Music and the Audioscrobbler Data Set introduces readers to a recommendation algorithm Spark supplies called The Alternating Least Squares Recommender Algorithm.

Getting Data

The data is hosted on here. The files are too large to be checked into github, so there is a script that can download the files and store them in the appropriate directory, or upload them to an S3 bucket.

To obtain the data and copy to local directory run:

$ ./get_data.sh local

To obtain the data and upload to s3 (make sure you are authenticated and that the bucket name exists)

$ ./get_data.sh s3 <SOME_BUCKET_NAME>

Build

To build a jar file that can be submitted to a spark cluster:

sbt assembly

To run and test locally:

sbt run

Checkout the configuration file at src/main/resources/application.conf. If you are running locally you may need to tweak the driver.memory and executor.memory settings.

Finally, go to http://localhost:4040/ to get access to Spark UI

About

Spark job music recommender system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published