License
License token and EULA acceptance.
Before K2K can connect to Kafka, the deployment must accept the EULA. license.acceptEula: true is mandatory—neither the replicator nor the offset mapper starts without it.
The license token is optional. Without a token, K2K runs in free tier mode: replication works, but it is capped at a small number of source partitions and the licensed features are unavailable. With a token, the cap is lifted and the features the token carries are unlocked—see Licensed features.
Obtain a license from Lenses. Set license.acceptEula and license.token in the pipeline, or inject the token from the environment through Secrets and templates. Once licensed, continue with Deployment and Kafka connectivity and authentication.
Prerequisites
EULA acceptance (
license.acceptEula: true)A K2K license from Lenses to replicate beyond the free tier partition cap or to use licensed features
Example
Use this pipeline configuration:
name: "my_pipeline"
license:
acceptEula: true
token: "<license-token>"
source:
kafka:
common:
"bootstrap.servers": "source:9092"
consumer:
"group.id": "my-k2k-group"
target:
kafka:
common:
"bootstrap.servers": "target:9092"
replication:
- source:
topic: "orders.*"
- sink:
topic: source
partition: sourceConfiguration keys
license.acceptEula
Accept the K2K EULA (must be true)
Yes
false
Both
Free tier
When license.token is omitted, K2K starts in free tier mode and logs a warning at startup. Replication is limited to 5 partitions in total across every topic matched by the source stage.
The count is the sum of partitions across all matching source topics, and it is re-evaluated on every consumer group rebalance—not only at startup. A pipeline using a topic regex can therefore start successfully and later fail when a newly created topic pushes the total over the limit. When that happens, K2K stops with a free tier limit error naming the current count and the maximum.
Free tier mode also leaves every licensed feature unavailable.
To replicate more partitions, add a license.token.
Licensed features
A license token carries entitlements per feature. Enabling a feature the token does not cover fails the pipeline at startup with a license restriction error.
features.schemaMapping
features.bidirectionalReplication
features.offsetMapping
For features.offsetMapping, both the replicator and the offset mapper check the entitlement, so a token missing it fails both applications.
Other features—including exactly once delivery, topic creation, record tracing, and header replication—are not entitlement-gated and work in free tier mode within the partition cap.
Expiry
A token may carry an expiry date. K2K validates it at startup and continues to check it while running, so a pipeline that is up when its license expires will stop. Renew before the expiry date to avoid an interruption.
Last updated
Was this helpful?

