Skip to content

Aeidle/SmartEdu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 

Repository files navigation

SamrtEdu

Installation

  1. Clone the repo
git clone https://github.com/Aeidle/SmartEdu.git
  1. change directory and create a new network
docker network create SmartEdu-network
  1. run the container
docker-compose up
  1. in seperate terminal execute
docker exec -it SmartEdu_backend /bin/bash
/usr/local/kafka/bin/zookeeper-server-start.sh /usr/local/kafka/config/zookeeper.properties
  1. in another terminal execute
docker exec -it SmartEdu_backend /bin/bash
/usr/local/kafka/bin/kafka-server-start.sh /usr/local/kafka/config/server.properties
  1. you can stop the container with
docker-compose down

Video sould be put in kafka_hadoop_spark_hive\src\videos in the cloned repository.

Inside hdfs the video will be in /kafka_output

Run the ingestion service

  1. open a jupyter notebook in you browser (its already installed and running, you will find the link in the terminla where you run the conatiner docker-compose up)

  2. open kafka_producer.ipynb and run the cell

  3. open kafka_consumer.ipynb and run the cell

You are all set