APACHE KAFKA
-
This is a basic introduction to apache kafka course, written in python.
-
The project makes use of dependencies such as:
-
Employed use cases:
- Source ==> Kafka (Producer API)
- Kafka ==> Kafka (Producer => Consumer)
- Kafka ==> Sink
- Kafka ==> App (Consumer => Elastic Search)
Directions
- Start Zookeeper -
bin/zookeeper-server-start.sh config/zookeeper.properties
- Start Kafka -
kafka-server-start.sh config/server.properties
- Run any of the modules in the directory
Usecase:
Twitter => Kafka(Producer) => Kafka(Consumer) => ElasticSearch Needs:
- Ensure you provide all neede secrets as provided in the
.env.sample
file
cd src
cd elastic_search
- Open terminal/zsh/fish ... and
i.
python3
ii.from elastic_twitter_producer import TwitterProducer as tp
iii.tp().get_timeline()
- Open another terminal and run any of the other consumers in the elastic_search dir