How to work with Kafka tools and KafScale
KafScale speaks the Kafka wire protocol. The tools you already use to create topics, produce and consume records and check consumer lag work against it. You don’t need a plugin. Point them at the KafScale proxy. That’s the same address your applications use.
Each tool has its own guide with commands you can copy and paste. This page covers what every tool sees when it talks to a proxied KafScale cluster.
Kafka CLI
The shell scripts that ship with Apache Kafka: kafka-topics, kafka-console-producer, kafka-consumer-groups and friends. The default toolbox for most Kafka operators.
kcat
A small command line producer, consumer and metadata browser built on librdkafka. Good for scripts, quick checks and piping data in and out of topics.
Kpow
A Kafka web UI from Factor House. The free Community Edition runs as one container and shows topics, messages, consumer groups and lag.
Bento
An MIT-licensed stream processor with Kafka inputs and outputs. Use it to move and transform data between KafScale and other systems.
kaf-mirror
Kafka-to-Kafka replication. Use it to copy topics from another Kafka cluster into KafScale and cut over.
Cloudflare R2
Not a client tool, but the cheapest place to keep the data: S3-compatible storage with 10 GB free each month and no egress fees.
Tool compatibility
Checked against KafScale v2.2.0 through the proxy.
| Tool | Tested version | Produce and consume | Topics | Consumer groups | Configs | Guide |
|---|---|---|---|---|---|---|
| Apache Kafka CLI | 4.3.1 | Yes | Create, delete, add partitions | List, describe, reset, delete | Read and change | Kafka CLI |
| kcat | 1.7.1 | Yes, with keys and headers | Metadata | Consume as a group | No | kcat |
| Kpow Community Edition | 97.1 | Browse recent records, produce | List, partitions, config view and edit | List, offsets, lag | Read and change | Kpow |
Bento and kaf-mirror have their own guides, linked in the cards above.
Try it yourself
You need a KafScale v2.2.0 cluster with the proxy on, and the Apache Kafka CLI. Set the proxy address:
export BOOTSTRAP=kafka.example.com:9092
Create a topic. You don’t have to pass counts:
kafka-topics.sh --bootstrap-server "$BOOTSTRAP" --create --topic orders
Created topic orders.
Produce three keyed records and read them back:
printf 'a:1\nb:2\nc:3\n' | kafka-console-producer.sh --bootstrap-server "$BOOTSTRAP" \
--topic orders --reader-property parse.key=true --reader-property key.separator=:
kafka-console-consumer.sh --bootstrap-server "$BOOTSTRAP" --topic orders \
--from-beginning --max-messages 3 --formatter-property print.key=true
Check what the proxy shows:
kafka-topics.sh --bootstrap-server "$BOOTSTRAP" --describe --topic orders
You see one broker, node 0, and one replica. The next section explains why.
How tools see a KafScale cluster
KafScale brokers are stateless and keep data in S3. Clients connect to the KafScale proxy. It hides the brokers behind one address. That changes a few things tools show:
- One broker. Metadata through the proxy lists a single broker, node 0, at the proxy address. Every partition shows leader 0. The real brokers sit behind the proxy. They can scale up and down and clients never notice.
- Replication factor 1. Every partition reports one replica and an in-sync replica set of
[0]. S3 provides durability, so KafScale doesn’t copy data between brokers. If a tool warns about a replication factor below 3, it is reporting the design. It is not a fault. - No local disks. Disk usage and log directory views stay empty or show 0 B. The data lives in object storage.
- Topic creation defaults. Leave out the partition count and the replication factor and KafScale picks them. The partition count comes from
KAFSCALE_AUTO_CREATE_PARTITIONS(1 if unset or not positive). The replication factor is 1. This works even when automatic topic creation is off.
This is what kafka-topics.sh --describe shows for a 4 partition topic on a cluster with 2 brokers:
Topic: orders TopicId: yk5ucW1hSq-T8fYwvVyjUA PartitionCount: 4 ReplicationFactor: 1 Configs:
Topic: orders Partition: 0 Leader: 0 Replicas: 0 Isr: 0 Elr: N/A LastKnownElr: N/A
Topic: orders Partition: 1 Leader: 0 Replicas: 0 Isr: 0 Elr: N/A LastKnownElr: N/A
Topic: orders Partition: 2 Leader: 0 Replicas: 0 Isr: 0 Elr: N/A LastKnownElr: N/A
Topic: orders Partition: 3 Leader: 0 Replicas: 0 Isr: 0 Elr: N/A LastKnownElr: N/A
Supported admin APIs
The proxy and the brokers advertise the same set. To see it on your cluster, run kafka-broker-api-versions.sh --bootstrap-server <proxy>.
| API | Versions | What tools use it for |
|---|---|---|
| Produce, Fetch | 0-9, 4-13 | Write and read records |
| ListOffsets | 0-4 | Earliest and latest offsets, and the first offset at a timestamp |
| Metadata | 0-12 | Brokers, topics, partitions |
| OffsetCommit, OffsetFetch | 1-3, 1-5 | Consumer group offsets |
| FindCoordinator, JoinGroup, SyncGroup, Heartbeat, LeaveGroup | 0-3, 0-4 | Consumer groups |
| DescribeGroups, ListGroups, DeleteGroups | 0-5, 0-5, 0-2 | Group views and cleanup |
| CreateTopics, DeleteTopics, CreatePartitions | 0-7, 0-2, 0-3 | Topic management |
| InitProducerId | 0-4 | Idempotent producers (not transactions) |
| DescribeConfigs | 4 | Read topic and broker configs |
| AlterConfigs, IncrementalAlterConfigs | 1, 0-1 | Change topic configs |
| DescribeAcls | 0-3 | Read-only view of the broker ACLs |
| OffsetForLeaderEpoch | 3 | Consumer recovery |
Topics have seven configs: cleanup.policy, compression.type, message.timestamp.type, min.insync.replicas, retention.ms, retention.bytes and segment.bytes. You can change retention.ms, retention.bytes and segment.bytes. The other four are fixed. Setting retention.ms stores the value. It doesn’t delete anything. Use S3 lifecycle rules on the topic prefix to expire data.
Not supported, so tools hide the feature or show an error:
| API or feature | Effect in tools | Status |
|---|---|---|
| CreateAcls, DeleteAcls | You can’t edit ACLs from a tool | Change ACLs in KAFSCALE_ACL_JSON or KAFSCALE_ACL_FILE. See Security |
| DescribeLogDirs | Disk and log dir views are empty | Data is in S3 |
| DeleteRecords, OffsetDelete | Truncate topic and delete group offsets fail | S3 lifecycle handles retention |
Topics with cleanup.policy=compact |
Kafka Streams changelog topics, Kafka Connect internal topics and the Schema Registry _schemas topic can’t be created |
KafScale has no log compaction |
| Quotas, reassignments, leader election | Views are empty | Not applicable or not planned |
| Transactions, DescribeProducers | Transaction views are empty | Transactions are not supported |
| SASL | SASL logins fail | Use mTLS at the proxy |
Connecting securely
KafScale authenticates Kafka clients with TLS 1.3 and client certificates (mTLS) at the proxy. SASL is not supported. Each guide shows the client settings for mTLS, kept in a file only you can read. See mTLS authentication for the cluster side.