Kafka Shell Script ๋๋ฌ๋ณด๊ธฐ
๋ค์ด๊ฐ๋ฉฐ
์ ๋ฌธ
kafka-topics.sh
kafka-configs.sh
kafka-console-producer.sh
kafka-console-consumer.sh
kafka-consumer-groups.sh
--list
- ์ปจ์๋จธ ๊ทธ๋ฃน ๋ฆฌ์คํ
--describe --group xxxx
- ์ปจ์๋จธ ๊ทธ๋ฃน ์์ธ ๋ณด๊ธฐ
--execute --to-latest/--to-earlist/...
- ์ปจ์๋จธ ๊ทธ๋ฃน์ offset์ ์ด๊ธฐํ ํ๊ฑฐ๋ ์ต์ ์ผ๋ก ์ด๋ ์ํค๋ ค๊ณ ํ ๋
Performance Test
์นดํ์นด ํด๋ฌ์คํฐ์ ํผํฌ๋จผ์ค๋ฅผ ์ธก์ ํ๊ธฐ ์ํ ๋๊ตฌ ์ ๋๋ค.
$ kafka-producer-perf-test.sh \
--producer-props bootstrap.servers=bitnami-kafka:9092 \
--topic test \
--num-records 100 \
--throughput 10 \
--record-size 100
52 records sent, 10.3 records/sec (0.00 MB/sec), 8.3 ms avg latency, 316.0 ms max latency.
100 records sent, 10.027073 records/sec (0.00 MB/sec), 4.84 ms avg latency, 316.00 ms max latency, 1 ms 50th, 13 ms 95th, 316 ms 99th, 316 ms 99.9th.
$ kafka-consumer-perf-test.sh \
--bootstrap-server bitnami-kafka:9092 \
--topic test \
--messages 10
start.time, end.time, data.consumed.in.MB, MB.sec, data.consumed.in.nMsg, nMsg.sec, rebalance.time.ms, fetch.time.ms, fetch.MB.sec, fetch.nMsg.sec
2025-01-15 09:26:16:817, 2025-01-15 09:26:20:246, 0.0096, 0.0028, 105, 30.6212, 3411, 18, 0.5312, 5833.3333
Reassign Partitions
Kafka Delete record
Kafka Dump Logs
Connectors
connect-distributed.sh
connect-standalone.sh
๊ณ ๊ธ
kafka-e2e-latency.sh
kafka-mirror-maker.sh
kafka-streams-application-reset.sh
zookeeper-server-start.sh
connect-mirror-maker.sh
kafka-features.sh
kafka-producer-perf-test.sh
zookeeper-server-stop.sh
connect-plugin-path.sh
kafka-get-offsets.sh
kafka-reassign-partitions.sh
kafka-transactions.sh
zookeeper-shell.sh
kafka-jmx.sh
kafka-replica-verification.sh
kafka-verifiable-consumer.sh
kafka-acls.sh
kafka-consumer-perf-test.sh
kafka-leader-election.sh
kafka-run-class.sh
kafka-verifiable-producer.sh
kafka-broker-api-versions.sh
kafka-delegation-tokens.sh
kafka-log-dirs.sh
kafka-server-start.sh
trogdor.sh
kafka-client-metrics.sh
kafka-delete-records.sh
kafka-metadata-quorum.sh
kafka-server-stop.sh
kafka-cluster.sh
kafka-dump-log.sh
kafka-metadata-shell.sh
kafka-storage.sh
zookeeper-security-migration.sh