vault backup: 2024-10-27 22:24:02
This commit is contained in:
@@ -6,7 +6,21 @@ kafka-dump-log.sh --print-data-log --files 00000000000000000000.log
|
||||
kafka-run-class.sh kafka.tools.DumpLogSegments --print-data-log --files 00000000000000000000.log
|
||||
```
|
||||
|
||||
![[./assert/1.png]]
|
||||

|
||||
|
||||
### 消费者的结构
|
||||
![[./assert/2.png]]
|
||||

|
||||
### 消费者分区的分配规则
|
||||

|
||||
|
||||
### Kafka的偏移量
|
||||
- 查看消费组的情况
|
||||
```bash
|
||||
kafka-consumer-groups --bootstrap-server localhost:9092 --list
|
||||
kafka-consumer-groups --bootstrap-server localhost:9092 --describe --group aisi-group
|
||||
kafka-console-consumer --bootstrap-server localhost:9092 --topic __consumer_offsets --from-beginning --formatter kafka.coordinator.group.GroupMetadataManager\$OffsetsMessageFormatter
|
||||
|
||||
# 重置消费者组对topic消费的offset
|
||||
kafka-consumer-groups --bootstrap-server localhost:9092 --group aisi-group-01 --reset-offsets --to-earliest --all-topics --execute
|
||||
```
|
||||

|
||||
BIN
Kafka/assert/3.png
Normal file
BIN
Kafka/assert/3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 316 KiB |
BIN
Kafka/assert/4.png
Normal file
BIN
Kafka/assert/4.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 209 KiB |
Reference in New Issue
Block a user