Giter VIP home page Giter VIP logo

recom-engine-streaming's Introduction

Recommendation Engine - Streaming Component

Description

This repository contains the streaming component of the recommender engine. The component is written using Apache Spark.

The code in this repository has a simple structure. It does the following things:

  • Fetches streaming user reviews from Kafka.
  • Loads a learning model from a path specified in the arguments. (For the learning model, we use ALSModel.)
  • Generates recommendations for users by using the learning model.
  • Stores the generated recommendations in MongoDB.

Usage

Run

This component cannot be run by itself. In order to run this component, all of the project components must be run using docker-compose. See Recommender Engine - Docker Files

If you want to change the code and run, after you change the code do the following steps:

  • Go to the root directory of the repository.
  • Run sbt clean assembly
  • Get the recom-engine-docker repository from here.
  • Move the jar file that is created from target/scala-2.11/recom-engine-streaming-assembly-0.1.jar to images/spark/master/target under recom-engine-docker's root directory.
  • Go to the root diretory of recom-engine-docker and run the command docker-compose up.

Watch the Outputs

If you want to watch the outputs of the streaming, do the following steps:

  • First run all of the components with docker-compose.
  • Go to the worker's web page from http://localhost:8082.
  • In this page, you can see the running drivers, click stdout link of the streaming application, then you can watch the outputs of the application.

Members

recom-engine-streaming's People

Contributors

yasinuygun avatar

Watchers

 avatar

Forkers

thaingo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.