Skip to content

A proof of concept about collecting clickstream data using Javascript, Divolte Collector, Apache Kafka and Java consumer application.

Notifications You must be signed in to change notification settings

soufianeodf/youtube-divolte-collector-with-apache-kafka

Repository files navigation

Divolte Collector with Apache Kafka

A proof of concept about collecting clickstream data using Javascript, Divolte Collector, Apache Kafka and Java consumer application.

Youtube video

Divolte Collector with Apache Kafka

Architecture Diagram

alt text

Technologies Used

Requirements

  • Divolte Collector and Apache Kafka: require java 8+

1- Set up the website

  1. Create a folder with bellow files:

2- Install Divolte Collector

  1. Download divolte collector // you may check the latest version available in the official website.
wget http://divolte-releases.s3-website-eu-west-1.amazonaws.com/divolte-collector/0.9.0/distributions/divolte-collector-0.9.0.tar.gz
  1. Unzip the tar file, and go inside the folder.
tar -xzf divolte-collector-*.tar.gz

cd divolte-collector-*
  1. Create bellow files in /conf folder with related content:
  1. Run Divolte collector server.
./bin/divolte-collector

3- Install Apache Kafka

  1. Download Apache Kafka // you may check the latest version available in the official website.
wget https://downloads.apache.org/kafka/2.8.0/kafka_2.13-2.8.0.tgz
  1. Unzip the tar file, and go inside the folder.
tar xzf kafka_*.tgz

cd kafka_*/
  1. You can update config files if you wich, we are going to use the default values:
  1. Run Zookeeper.
./bin/zookeeper-server-start.sh ./config/zookeeper.properties
  1. Run Kafka cluster.
./bin/kafka-server-start.sh ./config/server.properties
  1. You can create a Kafka topic named "tracking", but it is unnecessary because Divolte Collector is going to create it by default.
./bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic tracking
  1. You can create a Kafka consumer CLI for a quick check.
./bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic tracking

4- Run Java consumer

  1. Downlaod the java project as subfolder from this repository using SVN.
svn checkout https://github.com/soufianeodf/youtube-divolte-collector-with-apache-kafka/trunk/kafka-consumer
  1. Open project in your prefer text editor.
  2. Update Maven to download all dependencies.
  3. Run KafkaConsumerExample Class.

About

A proof of concept about collecting clickstream data using Javascript, Divolte Collector, Apache Kafka and Java consumer application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published