HUB
Sign inSign up

indusstack/rekuiper

By indusstack

•Updated 5 days ago

Lightweight, ultra-fast streaming SQL engine for edge & IoT in Rust

Image
0

350

indusstack/rekuiper repository overview

⁠indusstack/rekuiper

Docker Pulls Release Rust CI License: MIT or Apache-2.0

rekuiper is a lightweight streaming SQL engine written in Rust for edge computing, IIoT gateways, connected vehicles, and robotics. It is a drop-in replacement for eKuiper. It processes 150k–200k messages per second per CPU core with a low memory footprint.

rekuiper includes an embedded Model Context Protocol (MCP) server (rekuiper-mcp). AI assistants (Antigravity IDE, Claude Desktop, Cursor) use this server to inspect schemas, validate SQL offline, query topologies, and trace streaming rules.


⁠Quick Start

⁠1. Run with Docker

Start rekuiper with the REST API and Prometheus metrics enabled:

export REKUIPER_UI_PASSWORD='replace-with-a-unique-16-character-password'
docker run -d --name rekuiper \
  -p 127.0.0.1:9081:9081 -p 127.0.0.1:59720:59720 -p 127.0.0.1:20499:20499 \
  -e REKUIPER_UI_PASSWORD="$REKUIPER_UI_PASSWORD" \
  -e KUIPER__BASIC__CONSOLELOG=true \
  -e KUIPER__BASIC__PROMETHEUS=true \
  indusstack/rekuiper:2026.12.1

Check engine status:

curl http://localhost:9081/ping
# Response: pong

Open the OpenAPI Swagger UI in your browser:

http://localhost:9081/

⁠2. Run with Docker Compose

Clone the repository and start the multi-service stack:

git clone https://github.com/Indus-Stack/rekuiper.git
cd rekuiper
export REKUIPER_UI_PASSWORD='replace-with-a-unique-16-character-password'
docker compose -f deploy/docker/docker-compose.yml up -d

Set REKUIPER_UI_PASSWORD to a unique password of at least 16 characters before starting Compose. The stack starts rekuiper with management and metrics ports bound to host loopback. Connect to an authenticated external MQTT broker when you need MQTT input. Redis is not part of the default stack.


⁠Enterprise Features

Perform vector similarity calculations directly in SQL queries:

  • cosine_similarity(vec1, vec2): Calculates cosine similarity between numeric vectors (-1.0 to 1.0).
  • vector_l2(vec1, vec2): Calculates Euclidean distance between points.
  • vector_dot(vec1, vec2): Computes the inner dot product.
  • vector_match(query_vec, candidate_array, top_k): Returns the top $K$ nearest vectors ordered by similarity.
  • SQL Similarity Predicates: Filter streams with threshold clauses like WHERE cosine_similarity(v1, v2) > 0.85.
⁠2. Native RabbitMQ (AMQP 0-9-1) Connector

Connect to RabbitMQ brokers natively without CGO or external shared libraries:

  • RabbitMQ Source: Consumes queues and binds to exchanges with QoS prefetch control.
  • RabbitMQ Sink: Publishes stream records to exchanges or direct queues with confirmation.
  • Supports secure TLS (amqps://) and dynamic credentials.
⁠3. WebAssembly (WASM) Plugin Runtime

Run custom user-defined functions (UDFs) in a secure, sandboxed WebAssembly runtime:

  • Compile modules in Rust, C, C++, or Go (TinyGo).
  • Manage plugins via REST: POST /plugins/wasm, GET /plugins/wasm, and DELETE /plugins/wasm/:name.
  • Execute functions in SQL using direct function calls or wasm_run('module', 'function', arg1, arg2).
⁠4. Dynamic Secrets Resolution & Redaction

Protect credentials across streams and sinks:

  • HashiCorp Vault: Read secrets dynamically via {{vault://mount/path#field}}.
  • Environment Variables: Resolve secrets using {{env://VARIABLE_NAME}}.
  • Catalog Redaction: REST API responses mask passwords and show original URI templates.
⁠5. Apache Parquet Columnar Serialization

Store and read streaming telemetry using columnar Apache Parquet:

  • Parquet Sink: Writes records with binary PAR1 headers and Snappy compression.
  • Parquet Source: Reads Parquet files with automatic Arrow schema inference, column projection, and predicate pushdown filtering.
⁠6. EdgeX Foundry Dual-Port & OpenZiti Zero-Trust

Integrate with EdgeX Foundry microservices:

  • Concurrent Dual Ports: The engine listens on port 9081 (eKuiper default) and port 59720 (EdgeX default) with full bidirectional REST parity.
  • EdgeX Message Bus: Native source and sink for EdgeX V2 and V3 DTO events over MQTT, Redis, or ZeroMQ.
  • OpenZiti Zero-Trust: Deploy with deploy/docker/docker-compose-edgex-openziti.yml to remove all public host ports.

⁠Exposed Network Ports

PortProtocolPurposeDefault Bind
9081HTTP / TCPREST API, OpenAPI UI & Management (Standard eKuiper port).127.0.0.1:9081 on the host in the examples
59720HTTP / TCPEdgeX Application Service REST Port (Concurrent parity with 9081).127.0.0.1:59720 on the host with docker run
20499HTTP / TCPPrometheus Metrics (/metrics when enabled).127.0.0.1:20499 on the host in the examples
20498TCPeKuiper RPC Protocol Parity (Legacy Go RPC communication).127.0.0.1:20498

⁠Configuration & Environment Variables

Override configuration keys in etc/kuiper.yaml with double underscores: KUIPER__<SECTION>__<KEY>.

⁠Common Configuration Variables
VariableDefaultDescription
KUIPER__BASIC__LOGLEVELinfoLog verbosity: debug, info, warn, error.
KUIPER__BASIC__CONSOLELOGtrueStreams logs directly to stdout and stderr.
KUIPER__BASIC__PROMETHEUSfalseEnables the Prometheus /metrics scraping server.
KUIPER__BASIC__PROMETHEUSPORT20499Port for the Prometheus metrics listener.
KUIPER__BASIC__AUTHENTICATIONfalseEnforces RSA JWT token validation on REST routes.
KUIPER__BASIC__TIMEZONELocalIANA timezone string (for example, UTC or Local).
MQTT_SOURCE__DEFAULT__SERVERtcp://127.0.0.1:1883Default upstream MQTT broker URL.
VAULT_ADDRhttp://127.0.0.1:8200HashiCorp Vault server address.
VAULT_TOKEN(None)HashiCorp Vault access token.
RUST_LOGinfoRust tracing filter (info, debug, warn).

⁠Persistent Storage & Volumes

Container PathPurpose
/kuiper/dataStores SQLite database (sqliteKV.db), rule checkpoints, Parquet files, and WASM modules.
/kuiper/etcContains configuration files (kuiper.yaml, mqtt_source.yaml). Mount to supply custom configurations.
/kuiper/logFile-based logging directory when file logging is active.
⁠Run with Persistent Volumes

Keep the Docker volume or bind-mounted SQLite database and its -wal file writable only by the container's UID 1001. Check ownership and directory permissions before using an existing volume.

export REKUIPER_UI_PASSWORD='replace-with-a-unique-16-character-password'
docker run -d --name rekuiper \
  -p 127.0.0.1:9081:9081 -p 127.0.0.1:59720:59720 -p 127.0.0.1:20499:20499 \
  -e REKUIPER_UI_PASSWORD="$REKUIPER_UI_PASSWORD" \
  -v rekuiper-data:/kuiper/data \
  -v rekuiper-etc:/kuiper/etc \
  indusstack/rekuiper:2026.12.1

⁠Command Line Interface & Tools

The container includes the kuiper CLI and rekuiper-mcp binary in /kuiper/bin:

# Check engine status
docker exec -it rekuiper kuiper ping

# Create a stream
docker exec -it rekuiper kuiper create stream demo '(temp float, humidity bigint) WITH (FORMAT="JSON", DATASOURCE="devices/+/events")'

# List active streams
docker exec -it rekuiper kuiper show streams

# Inspect the Model Context Protocol server
docker exec -it rekuiper /kuiper/bin/rekuiper-mcp --help

⁠Supported Architectures

Official images support:

  • linux/amd64 (x86_64 servers and edge gateways)
  • linux/arm64 (Raspberry Pi 4/5, NVIDIA Jetson, Apple Silicon, AWS Graviton)

Tag summary
Recent tags
Content type
Image
Digest
sha256:196ddae2c…
Size
105.5 MB
Last updated
5 days ago
docker pull indusstack/rekuiper:latest