kafka
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| kafka [2026/05/19 14:25] – reddy | kafka [2026/05/19 14:29] (current) – reddy | ||
|---|---|---|---|
| Line 121: | Line 121: | ||
| </ | </ | ||
| + | ===== Kafka CLI ===== | ||
| + | |||
| + | < | ||
| + | # List topics | ||
| + | ./ | ||
| + | |||
| + | # Create a topic for testing | ||
| + | ./ | ||
| + | |||
| + | # List topics | ||
| + | ./ | ||
| + | |||
| + | # See details for the topic | ||
| + | ./ | ||
| + | |||
| + | # To change the replication factor for a topic, use the " | ||
| + | cat > partcfg.json <<EOF | ||
| + | {" | ||
| + | " | ||
| + | | ||
| + | | ||
| + | | ||
| + | ]} | ||
| + | EOF | ||
| + | kafka-reassign-partitions --bootstrap-server=a.xyz: | ||
| + | |||
| + | # To change any other config for an existing topic | ||
| + | # ./ | ||
| + | # | ||
| + | |||
| + | # See more at: https:// | ||
| + | </ | ||
kafka.1779193554.txt.gz · Last modified: by reddy
