Skip to content
KSQL - the Streaming SQL Engine for Apache Kafka
Java Other
  1. Java 99.5%
  2. Other 0.5%
Branch: master
Clone or download
Latest commit 0ccae27 Aug 8, 2019
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 Add confluent-security to classpath to enable security plugins (#2993) Jun 19, 2019
build-tools Bump Confluent to 5.4.0-SNAPSHOT, Kafka to 2.4.0-SNAPSHOT May 21, 2019
checkstyle Add "the License" ref Feb 26, 2019
config Minor: update default listener from localhost to 0.0.0.0 (#2631) Apr 10, 2019
debian Merge branch '5.1.x' Jan 3, 2019
design-proposals docs: intent for klip-8: Interactive Queries Jul 22, 2019
docker Set the default server port to 8088. (#930) Mar 14, 2018
docs Merge branch '5.3.x' Aug 7, 2019
ext Reduce log level when loading blacklist to INFO from ERROR (#1522) Jul 4, 2018
findbugs Fix old copyrights on some files (#2456) Feb 20, 2019
ksql-benchmark feat(data-gen): support KAFKA format in DataGen (#3120) Aug 6, 2019
ksql-cli chore: fix typo in SqlBase.g4 (#3170) Aug 7, 2019
ksql-clickstream-demo docs: fix type in clickstream demo. (MINOR) Aug 6, 2019
ksql-common docs: call out that service id should end in separator char (#3116) Aug 6, 2019
ksql-console-scripts Bump Confluent to 5.4.0-SNAPSHOT, Kafka to 2.4.0-SNAPSHOT May 21, 2019
ksql-engine feat(data-gen): support KAFKA format in DataGen (#3120) Aug 6, 2019
ksql-etc Bump Confluent to 5.4.0-SNAPSHOT, Kafka to 2.4.0-SNAPSHOT May 21, 2019
ksql-examples feat(data-gen): support KAFKA format in DataGen (#3120) Aug 6, 2019
ksql-execution fix: dummy placeholder class in ksql-execution (#3142) Jul 29, 2019
ksql-functional-tests refactor: wire in new key serde (#3162) Aug 5, 2019
ksql-metastore refactor: wire in new key serde (#3162) Aug 5, 2019
ksql-package Merge branch '5.3.x' Aug 1, 2019
ksql-parser chore: fix typo in SqlBase.g4 (#3170) Aug 7, 2019
ksql-rest-app chore: Fix merge revert (#3173) Aug 6, 2019
ksql-serde refactor: wire in new key serde (#3162) Aug 5, 2019
ksql-test-util feat(data-gen): support KAFKA format in DataGen (#3120) Aug 6, 2019
ksql-tools Bump Confluent to 5.4.0-SNAPSHOT, Kafka to 2.4.0-SNAPSHOT May 21, 2019
ksql-udf-quickstart Minor: convert the `SqlSchemaFormatter` to use the new `SchemaWalker` ( Jun 7, 2019
ksql-udf Support STRUCT in UDAFs (both parameters & return values) (#2823) May 24, 2019
ksql-version-metrics-client feat: add basic support for key syntax (#3034) Jul 14, 2019
licenses Bump Confluent to 5.4.0-SNAPSHOT, Kafka to 2.4.0-SNAPSHOT May 21, 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 build: add commitlint for conventional commits (#3008) Jun 25, 2019
CHANGELOG.md Add link to new change log location Feb 12, 2019
CONTRIBUTING.md Merge branch '5.3.x' Jun 28, 2019
Jenkinsfile Move docker image to break circular dependency (#3002) Jul 3, 2019
LICENSE Update to use CCL (#2278) Dec 14, 2018
PULL_REQUEST_TEMPLATE.md Fix typo Sep 25, 2018
README.md Merge branch '5.3.x' Jul 31, 2019
commitlint.config.js build: add commitlint for conventional commits (#3008) Jun 25, 2019
ksql-rocket.png chore: rename ksql rocket image Jul 22, 2019
package-lock.json build: add commitlint for conventional commits (#3008) Jun 25, 2019
package.json build: add commitlint for conventional commits (#3008) Jun 25, 2019
pom.xml feat(ksql-connect): introduce ConnectClient for REST requests (#3137) Jul 29, 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 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;

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.

You can’t perform that action at this time.