1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 17:56:53 +02:00
dockerfiles/ksqldb
2020-02-11 16:09:03 +08:00
..
data add ksqldb 2020-02-11 16:09:03 +08:00
docker-compose.yml add ksqldb 2020-02-11 16:09:03 +08:00
README.md add ksqldb 2020-02-11 16:09:03 +08:00

ksqldb

ksqlDB is an event streaming database.

Up and Running

$ docker-compose up -d
$ curl http://127.0.0.1:8088/info
$ docker-compose exec ksqldb-cli ksql http://ksql-server:8088
>>> CREATE TABLE products (product_name VARCHAR, cost DOUBLE)
    WITH (kafka_topic='products', partitions=3, value_format='json');
>>> CREATE STREAM products_changelog AS
    SELECT * FROM products EMIT CHANGES;
>>> SHOW TOPICS;
>>> SHOW TABLES;
>>> SHOW STREAMS;

Docs