Apache Kafka

From air
Revision as of 14:57, 5 April 2014 by Donsez (talk | contribs)
Jump to navigation Jump to search

Apache Kafka is Publish-Subscribe messaging rethought as a distributed commit log.

http://kafka.apache.org/

Clients en Perl, Python, Node.js, C, C++, Scala ...: https://cwiki.apache.org/confluence/display/KAFKA/Clients

First steps with Kafka

cd kafka

Launch Zookeeper

./bin/zookeeper-server-start.sh ./config/zookeeper.properties

Launch Kafka server

./bin/kafka-server-start.sh ./config/server.properties

Launch Zookeeper shell

./bin/zookeeper-shell.sh localhost:2181

Launch Kafka console producer

./bin/kafka-console-producer.sh --broker-list localhost:2181 --topic /test

Launch Kafka console consumer

./bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic /test


Stop all

./bin/kafka-server-stop.sh
./bin/zookeeper-server-stop.sh