728x90

* * * PDF의 연습파일이라고 올려줬는데 html태그이다. 어쩔수 없이 여기에

Note to Windows users

WINDOWS USERS PLEASE READ

In the next lecture, do not run the command to DELETE topics

Because of a bug here: https://issues.apache.org/jira/browse/KAFKA1194, it doesn't work. I'm actively working with the Kafka Dev team to see if I can get this fixed.

In the meantime, please do not delete topics. Otherwise your Kafka will crash and you won't be able to do the tutorial.

A workaround is to launch Kafka inside of a Linux VM and do the tutorial from there.

Thanks

Commonly Used CLI options

The CLI have many options, but here are the other that are most commonly used:

Producer with keys

kafka-consoleproducer --broker-list 127.0.0.1:9092 --topic first_topic --property
parse.key=true --property key.separator=,
> key,value
> another key,another value

Consumer with keys

kafka-consoleconsumer --bootstrap-server 127.0.0.1:9092 --topic first_topic --frombeginning --property print.key=true --property
key.separator=,

 

Kafka UI

Kafka does not come bundled with a UI, but here are some recommendations

  • Kafka Manager (for managing Kafka and instead of using CLI): https://github.com/yahoo/kafkamanager

  • Kafka Tools (will be explore in the next lecture)

  • You may find other UIs on the internet

Overall in this course, we perform all the actions without any UI, which is good for learning how to properly use the CLI

KafkaCat

KafkaCat (https://github.com/edenhill/kafkacat) is an open-source alternative to using the Kafka CLI, created by Magnus Edenhill.

While KafkaCat is not used in this course, if you have any interest in trying it out, I recommend reading: https://medium.com/@coderunner/debugging-with-kafkacatdf7851d21968

Happy learning!

728x90
Posted by 댕기사랑
,