To run it on your machine you need Kafka and Docker (+ docker-compose), postgresql database installed.
- Run kafka, then specify kafka address in application.yaml of recommendation-service
- Run redis -
cd redis && docker-compose up -d
, then specify redis address in application.yaml of recommendation-service - Create database, specify connection url, username and password in environmental variables.
- Download combined_data_1.txt from https://www.kaggle.com/netflix-inc/netflix-prize-data and place it into resource directory of recommendation-algorithm, rename it to 'netflix.txt'
Model loading is configured by properties in application.yaml of recommendation-service.
You have 2 options to build the model:
- Set model.initializer.source to NETFLIX - model will be loaded from NetflixPrize dataset.
- Set model.initizlizer.source to DATABASE - model will be loaded from database (if it was saved before)