- Nov 30, 2020
-
-
Seok Won authored
In this example, we read "first-topic", in partition 0, from offset 5 until offset becomes 10. [main] INFO csw.kafka.study.lesson2.ConsumerDemoAssignSeek - Key: null, Value: five [main] INFO csw.kafka.study.lesson2.ConsumerDemoAssignSeek - Partition: 0, Offset: 5 [main] INFO csw.kafka.study.lesson2.ConsumerDemoAssignSeek - Key: null, Value: Hello World! [main] INFO csw.kafka.study.lesson2.ConsumerDemoAssignSeek - Partition: 0, Offset: 6 [main] INFO csw.kafka.study.lesson2.ConsumerDemoAssignSeek - Key: id_1, Value: Hello 1 [main] INFO csw.kafka.study.lesson2.ConsumerDemoAssignSeek - Partition: 0, Offset: 7 [main] INFO csw.kafka.study.lesson2.ConsumerDemoAssignSeek - Key: id_3, Value: Hello 3 [main] INFO csw.kafka.study.lesson2.ConsumerDemoAssignSeek - Partition: 0, Offset: 8 [main] INFO csw.kafka.study.lesson2.ConsumerDemoAssignSeek - Key: key_1, Value: world [main] INFO csw.kafka.study.lesson2.ConsumerDemoAssignSeek - Partition: 0, Offset: 9 [main] INFO csw.kafka.study.lesson2.ConsumerDemoAssignSeek - Exiting...
-
Seok Won authored
+ python config updates for consumers + README updates
-
Seok Won authored
-
- Nov 29, 2020
-
-
Seok Won authored
it reads all datas in three partitions from a topic named "first-topic". I sent datas in String, like "hello world".
-
- Nov 28, 2020
-
-
defaultSouth authored
-
Seok Won authored
At line 34, we added key parameter. Whenever we use same key when sending a data, same key always use same partition. i.e) i = 0, key = "truck_1" -> partition_0 i = 1, key = "truck_1" -> partition_0 ...
-
Seok Won authored
for example, whenever we send a data, this callback function will execute. 새 메타데이터 Topic: first-topic Partition: 2 Offset: 13 Timestamp: 1606555474565
-
defaultSouth authored
-
defaultSouth authored
-
defaultSouth authored
-
Seok Won authored
Send "Hello World!" string to topic named "first-topic". Producer sends a data to Consumer asynchronous, so we have to flush to see results right away. Execute below command to see "Hello World!" >> kafka-console-consumer --bootstrap-server localhost:9092 --topic first-topic --group group-one
-
Seok Won authored
-