Common Commands

Essential Kafka commands for topic management, consumer operations, and monitoring

Comparing Kafka Topic Deletion vs. Retention Policy Commands

Comparing Kafka Topic Deletion vs. Retention Policy Commands

Explore the critical differences between Kafka topic deletion and retention policies. This comprehensive guide details the `kafka-topics.sh --delete` command for immediate removal of entire topics versus configuring `retention.ms` and `retention.bytes` for automated, time or size-based data lifecycle management. Learn how each mechanism works, examine practical command examples, and understand their unique use cases, advantages, and best practices. Master Kafka data management to optimize storage, maintain data integrity, and ensure efficient cluster operations.

DevOps Knowledge Hub
36
Understanding Kafka Command Line Tools: CLI Reference Guide

Understanding Kafka Command Line Tools: CLI Reference Guide

Unlock the power of Apache Kafka with this comprehensive command-line interface (CLI) reference guide. Learn essential Kafka commands for managing topics (`kafka-topics.sh`), sending messages (`kafka-console-producer.sh`), consuming data (`kafka-console-consumer.sh`), and inspecting consumer groups (`kafka-consumer-groups.sh`). This guide details practical use cases, arguments, and best practices for effective Kafka administration and troubleshooting.

DevOps Knowledge Hub
38
Troubleshooting Common Kafka Consumer Lag Using Console Commands

Troubleshooting Common Kafka Consumer Lag Using Console Commands

Master the art of troubleshooting Kafka consumer lag using powerful console commands. This comprehensive guide walks you through diagnosing lag with `kafka-consumer-groups.sh` (and legacy `consumer-offset-checker.sh`), interpreting their outputs, and effectively resetting consumer offsets to bring applications back in sync. Learn best practices, understand the implications of offset resets, and ensure your Kafka pipelines remain efficient and reliable. Practical examples and actionable steps make this an indispensable resource for Kafka operators and developers.

DevOps Knowledge Hub
36
Best Practices for Monitoring Kafka Health with Built-in Commands

Best Practices for Monitoring Kafka Health with Built-in Commands

This article provides expert guidance on using Kafka's powerful, yet often overlooked, built-in command-line tools for rapid health assessment. Learn how to quickly check broker status, identify under-replicated partitions (URP), monitor critical consumer lag using `kafka-consumer-groups.sh`, and diagnose resource utilization. Master these essential practices and commands—like `kafka-topics.sh --describe`—to ensure robust cluster performance, prevent costly downtime, and maintain the integrity of your distributed event streams.

DevOps Knowledge Hub
24
How to Create and Manage Kafka Topics Using Command Line

How to Create and Manage Kafka Topics Using Command Line

This expert guide provides a comprehensive, step-by-step tutorial on managing Kafka topics exclusively through the command line interface (CLI). Learn the essential commands using the `kafka-topics.sh` utility for crucial administrative tasks: creating topics with defined partitions and replication factors, verifying configurations via description, safely increasing partition counts, and performing topic deletion. Master these actionable commands to ensure robust and efficient Kafka cluster administration.

DevOps Knowledge Hub
34