Skip to content

farizmpr/big_data_final_project_133

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

big_data_final_project_133

producer.py

this function will send the data to consumer

comsumer.py

it will receive data from producer and will keep the file with batch format

server.py

to endpoint API, and to run engine and app

app.py

to setting up routing

engine.py

initialization, to run the webserver, to call app.py and engine.py, and set the location dataset

total data = 300.000 data/batch range of time receive = 0.00000000000000001

model

  1. Model 1: 300.000 first data.
  2. Model 2: 300.000 second data.
  3. Model 3: 300.000 third data.

akses API

run localhost (0.0.0.0) with some port

step by step to run the system

  1. run zookeeper with this syntax zkserver
    2.make topic in kafka with this syntax
kafka-topics.bat — create — zookeeper localhost:2181 — replication-factor 1 — partitions 1 — topic home-kitchen

3.run producer.py in spyder
4.run consumer.py spyder
5.after that consumer will receive data
6.run server.py for training data and access API

API REQUEST

1.give recommendation product according to the user
http://localhost:/<model_id>/<user_id>/ratings/top/<count_num>
1

2.
show the most recommended users by product
http://localhost:/int:model/products/int:product_id/recommend/int:count
2

3.showing the user rating a particular product
http://localhost:/int:model/int:user_id/ratings/int:product_id
1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published