GitXplorerGitXplorer
k

demo-beam-summit-2018

public
14 stars
6 forks
10 issues

Commits

List of commits on branch master.
Unverified
c80b348a9f48af60b1f5c5e5a625bc0ad40223da

consuming from Kafka now via External KafkaIO

kknaufk committed 6 years ago
Unverified
86eeca6ca1244d83ca1438e555fab081211ab474

upgrade to Beam 2.13.0 and Flink 1.8.0

kknaufk committed 6 years ago
Unverified
473af74aee92de06e5eed096d5848936dcb68b6a

initial commit

kknaufk committed 6 years ago

README

The README file for this repository.

Python Streaming Pipelines with Beam on Flink - Demo

Preparing for the Demo

Follow the steps described in docker/REAMDME.md to setup a local containerized environment to run Beam Python Pipelines on Apache Flink.

Running the Demo

These steps assume you have followed the steps in docker/README.md and you have virtualenvwrapper (https://virtualenvwrapper.readthedocs.io/en/latest/) installed.

  1. Create a virtualenv containing the required dependencies e.g. by running mkvirtualenv -p python2.7 -r requirements.txt beam
  2. Start the Flink Cluster and Flink Job Server by running docker-compose up -d inside the docker sub-directory.
  3. Run workon beam && python wordcount.py --runner=PortableRunner --job_endpoint=localhost:8099 inside the virtualenv created in the first step.
  4. Observe the output by running docker logs docker_taskmanager_1 -f | grep 'wordcount.process'.
  5. Produce some records into the Kafka Topic "beam-input" e.g. via
docker-compose exec kafka /bin/bash -c 'kafka-console-producer.sh  --broker-list localhost:9092 --topic beam-input < /etc/profile'

or

docker-compose exec kafka /bin/bash -c 'kafka-console-producer.sh  --broker-list localhost:9092 --topic beam-input'

(interactively).