sudo /usr/local/confluent-5.1.2/bin/kafka-avro-console-consumer  --bootstrap-server  서버목록      --property print.key=true     --property schema.registry.url=스키마-리지스트리 --topic user --consumer.config /home/www/consumer.properties

 consumer에서 맨 마지막 읽은 부분부터 읽고 싶으면 다음 설정을 적용한다.

<consumer.propertie>

auto.offset.reset=latest
group.id=usergroup



정말 잘 설명된 문서

https://free-strings.blogspot.com/2016/04/blog-post_27.html

https://docs.confluent.io/current/clients/consumer.html

https://kafka.apache.org/documentation/

Posted by '김용환'
,