/stream-processing-playground

Repository with some samples of confluent platform usage.

Primary LanguageShell

Stream Processing Playground

This repository contains a playground for learning stream processin via Flink.

This playground contains the following:

  • zookeeper
  • kafka broker
  • confluent schema registry
  • confluent control center
  • kafka rest proxy
  • battle.net server emulator (generates test events)
  • prometheus
  • grafana
  • flink

To run the platform do the following:

  1. create a docket network by running init.sh. This is a shared network for three different docker compose files.
  2. start confluent platform: cd confluent; docker-compose up -d; cd..;
  3. start prometheus and grafana: cd prometheus-grafana; docker-compose up -d; cd ..;
  4. start flink: cd flink; docker-compose up -d; cd ..;

Useful links:

Alternative installation

In case you would like to run eveyrthing without docker, you can do the following.

Confluent platform with battlenet emulator

  1. Download confluent platform archive from https://packages.confluent.io/archive/7.0/confluent-7.0.1.tar.gz
  2. Unpack the archive to an appropriate place
  3. Following instructions from this link
  4. export CONFLUENT_HOME=<WHENEVER_PATH_YOU_EXTRACTED_PACKAGE_TO>
  5. export PATH=$PATH:$CONFLUENT_HOME/bin
  6. confluent local services control-center start
  7. Download battle net emulator universal package from this link
  8. Unpack the emulator and run the binary by running ./bin/battlenet_emulator

Minio

On mac I recommend following these instructions and install minio from homebrew.

Flink

Can be downloaded from offitial distribution started with ./bin/start-cluster.sh