KSQL - the Streaming SQL Engine for Apache Kafka
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Also add ksql team for docs (#1827) Sep 4, 2018
bin MINOR: Cause 'ksql help' and 'ksql -help' to behave the same as 'ksql… Oct 12, 2018
build-tools Bump Confluent to 5.3.0-SNAPSHOT, Kafka to 2.3.0-SNAPSHOT Feb 11, 2019
checkstyle Update to use CCL (#2278) Dec 14, 2018
config Update to use CCL (#2278) Dec 14, 2018
debian Merge branch '5.1.x' Jan 3, 2019
design-proposals Add ability to submit design proposals aka (KLIPS) on github (#1235) Jun 20, 2018
docker Set the default server port to 8088. (#930) Mar 14, 2018
docs Interactive & Standalone support for multi-statement requests (#2428) Feb 17, 2019
ext Reduce log level when loading blacklist to INFO from ERROR (#1522) Jul 4, 2018
findbugs Add JMH benchmarks for Avro and JSON serdes. (#2361) Feb 7, 2019
ksql-benchmark Merge branch '5.2.x' into master. Feb 16, 2019
ksql-cli Bump Confluent to 5.3.0-SNAPSHOT, Kafka to 2.3.0-SNAPSHOT Feb 11, 2019
ksql-clickstream-demo Bump Confluent to 5.3.0-SNAPSHOT, Kafka to 2.3.0-SNAPSHOT Feb 11, 2019
ksql-common Merge branch '5.2.x' into master. Feb 16, 2019
ksql-console-scripts Bump Confluent to 5.3.0-SNAPSHOT, Kafka to 2.3.0-SNAPSHOT Feb 11, 2019
ksql-engine Minor: Clean up imports Feb 18, 2019
ksql-etc Bump Confluent to 5.3.0-SNAPSHOT, Kafka to 2.3.0-SNAPSHOT Feb 11, 2019
ksql-examples Interactive & Standalone support for multi-statement requests (#2428) Feb 17, 2019
ksql-metastore Fix thread-safety issues in MetaStore and KsqlEngine (#2417) Feb 16, 2019
ksql-package Bump Confluent to 5.3.0-SNAPSHOT, Kafka to 2.3.0-SNAPSHOT Feb 11, 2019
ksql-parser Fix thread-safety issues in MetaStore and KsqlEngine (#2417) Feb 16, 2019
ksql-rest-app Minor: Refactor CommandQueue to accept PreparedStatements (#2432) Feb 17, 2019
ksql-serde Interactive & Standalone support for multi-statement requests (#2428) Feb 17, 2019
ksql-test-util Bump Confluent to 5.3.0-SNAPSHOT, Kafka to 2.3.0-SNAPSHOT Feb 11, 2019
ksql-tools Bump Confluent to 5.3.0-SNAPSHOT, Kafka to 2.3.0-SNAPSHOT Feb 11, 2019
ksql-udf-quickstart Bump Confluent to 5.3.0-SNAPSHOT, Kafka to 2.3.0-SNAPSHOT Feb 11, 2019
ksql-udf Fix thread-safety issues in MetaStore and KsqlEngine (#2417) Feb 16, 2019
ksql-version-metrics-client Bump Confluent to 5.3.0-SNAPSHOT, Kafka to 2.3.0-SNAPSHOT Feb 11, 2019
licenses Bump Confluent to 5.3.0-SNAPSHOT, Kafka to 2.3.0-SNAPSHOT Feb 11, 2019
notices Starting a clean ksql repo by removing all the previous commit history. Aug 16, 2017
.github_changelog_generator Add ability to autogenerate change logs (#692) Feb 3, 2018
.gitignore extract ksql experimental ui (#863) Mar 7, 2018
CHANGELOG.md Add link to new change log location Feb 12, 2019
CONTRIBUTING.md Document and enhance QTT. (#2370) Jan 21, 2019
Jenkinsfile Rm ksql-examples, cp-ksql-server, and cp-ksql-cli from ksql (#2059) Oct 20, 2018
LICENSE Update to use CCL (#2278) Dec 14, 2018
PULL_REQUEST_TEMPLATE.md Fix typo Sep 25, 2018
README.md Update to use CCL (#2278) Dec 14, 2018
ksq-lrocket.png Resize rocket Aug 24, 2017
pom.xml Merge remote-tracking branch 'origin/5.2.x' Feb 16, 2019
screencast.jpg KSQL screencast image Aug 30, 2017

README.md

KSQL rocket KSQL - Streaming SQL for Apache Kafka

KSQL is now GA and officially supported by Confluent Inc. Get started with KSQL today.

KSQL is the streaming SQL engine for Apache Kafka. It provides a simple and completely interactive SQL interface for stream processing on Kafka; no need to write code in a programming language such as Java or Python. KSQL is distributed, scalable, reliable, and real-time. It supports a wide range of powerful stream processing operations including aggregations, joins, windowing, sessionization, and much more. You can find more KSQL tutorials and resources here if you are interested.

Click here to watch a screencast of the KSQL demo on YouTube. KSQL screencast

Getting Started and Download

Stable Releases

Stable releases are published every four months and are officially supported by Confluent.

  1. Download latest stable KSQL, which is included in Confluent Platform.
  2. Follow the Quick Start.
  3. Read the KSQL Documentation, notably the KSQL Tutorials and Examples, which include Docker-based variants.

Preview Releases

In addition to supported stable KSQL releases, we also provide monthly preview releases. We encourage you to try them in development and testing environments and to take advantage of Confluent Community resources to get help and share feedback.

Documentation

See KSQL documentation for the latest stable release.

Use Cases and Examples

Streaming ETL

Apache Kafka is a popular choice for powering data pipelines. KSQL makes it simple to transform data within the pipeline, readying messages to cleanly land in another system.

CREATE STREAM vip_actions AS
  SELECT userid, page, action
  FROM clickstream c
  LEFT JOIN users u ON c.userid = u.user_id
  WHERE u.level = 'Platinum';

Anomaly Detection

KSQL is a good fit for identifying patterns or anomalies on real-time data. By processing the stream as data arrives you can identify and properly surface out of the ordinary events with millisecond latency.

CREATE TABLE possible_fraud AS
  SELECT card_number, count(*)
  FROM authorization_attempts
  WINDOW TUMBLING (SIZE 5 SECONDS)
  GROUP BY card_number
  HAVING count(*) > 3;

Monitoring

Kafka's ability to provide scalable ordered messages with stream processing make it a common solution for log data monitoring and alerting. KSQL lends a familiar syntax for tracking, understanding, and managing alerts.

CREATE TABLE error_counts AS
  SELECT error_code, count(*)
  FROM monitoring_stream
  WINDOW TUMBLING (SIZE 1 MINUTE)
  WHERE  type = 'ERROR'
  GROUP BY error_code;

Latest News

Join the Community

You can get help, learn how to contribute to KSQL, and find the latest news by connecting with the Confluent community.

Contributing

Contributions to the code, examples, documentation, etc. are very much appreciated.

License

The project is licensed under the Confluent Community License.

Apache, Apache Kafka, Kafka, and associated open source project names are trademarks of the Apache Software Foundation.