Apache Kafka
Apache Kafka event streaming commands. Manage topics, producers, consumers, and distributed message queues.
55 commands
Browse by Topic
Getting Started
Quick setup and installation
Topics
Topic management
Producer
Producing messages
Consumer
Consuming messages
Consumer Groups
Group management
Admin
Cluster administration
ACLs
Security & ACLs
Performance
Performance testing
Connect
Kafka Connect
Monitoring
Metrics & monitoring
Troubleshooting
Issues & debugging
Start Kafka with Docker Compose
Start Kafka cluster using Docker Compose (requires compose file)
Create a topic
Create a new Kafka topic named 'test'
List topics
List all Kafka topics on the cluster
Create topic
Create topic with partitions and replication.
List topics
List all topics.
Describe topic
Show topic details.
Delete topic
Delete a topic.
Alter partitions
Increase partition count.
Topic config
Show topic configuration.
Set retention
Set topic retention to 24 hours.
Console producer
Start interactive producer.
Produce with key
Produce key:value messages.
Produce from file
Send messages from file.
Produce with acks
Produce with all replicas acknowledgment.
Console consumer
Consume new messages.
From beginning
Consume all messages from start.
With keys
Show message keys.
With timestamps
Show message timestamps.
Specific partition
Consume from specific partition.
Max messages
Consume limited number of messages.
Consumer group
Consume as part of consumer group.
List groups
List all consumer groups.
Describe group
Show group members and lag.
Reset offset to earliest
Reset group offset to beginning.
Reset offset to latest
Reset group offset to end.
Reset by timestamp
Reset offset to specific timestamp.
Delete group
Delete a consumer group.
Describe cluster
Show cluster metadata.
Broker configs
Show broker configuration.
List under-replicated
Find under-replicated partitions.
Log dirs
Show log directory info.
Get offsets
Get partition offsets.
List ACLs
List all ACLs.
Add producer ACL
Grant producer access to topic.
Add consumer ACL
Grant consumer access to topic and group.
Remove ACL
Remove access control.
Producer perf test
Benchmark producer throughput.
Consumer perf test
Benchmark consumer throughput.
End-to-end latency
Measure end-to-end message latency.
List connectors
List all connectors.
Connector status
Get connector status.
Create connector
Create connector from config file.
Delete connector
Delete a connector.
Restart connector
Restart a connector.
Pause connector
Pause a connector.
Run standalone connector
Start Kafka Connect in standalone mode.
Create connector via REST
Create connector using REST API with config file.
Check connector status
Check status of specific connector.
Delete connector
Remove a connector via REST API.
Show consumer lag
Display consumer group lag and offsets.
Reset offsets to earliest
Reset consumer group offsets to beginning.
Check broker disk usage
Show disk usage per broker and topic.
Check broker API versions
Display supported API versions per broker.
Inspect cluster metadata
Examine KRaft cluster metadata logs.
Dump log segment
Inspect log segment file contents.
Discussion
Loading comments...