Aiven-Open / Aiven-Open/tiered-storage-for-apache-kafka

How to Consume Messages Stored in S3 Minio Storage?

Aperta
#635 3 commenti 0 reazioni 1 assegnatario Rivendicata da @jeqo Vedi su GitHub
Lingua principale
Java
Stelle
239
Fork
59
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

# What can we help you with?

I’m new to the tiered storage function and am currently building/testing it. I have successfully built Aiven's plugins with my Kraft-mode Kafka cluster. On the producer side, everything works just fine—the messages flow to the enabled remote storage topic, and the files are then moved to Minio for storage. At this point, there are still about 100k messages left in the brokers.

I then tried to start a consumer, which in my case includes an Iceberg Sink Kafka Connector [(https://github.com/databricks/iceberg-kafka-connect)](https://github.com/Aiven-Open/tiered-storage-for-apache-kafka/issues/url) and a Python application as the consumer.

My expectation was that when any consumer starts consuming a topic with the remote storage function enabled for the first time, all the logs stored in Minio would be loaded into the cache folder, and then the consumer would process both the messages currently on the local disk and those loaded into the cache folder.

However, in my experience, the consumer only consumes the messages in the local disk (the 100k). When I checked the broker's container, I observed that the cache folder was being loaded with the log files that have the same names as those in Minio, but the consumer does not consume them.

After checking the logs of both the brokers and the Kafka connector, I found no errors.

# Where would you expect to find this information?

It would be greatly appreciated if there are tutorials or documentation on how to consume messages (via Kafka Connect, Python/PySpark, Apache Pinot, etc.) from a topic with remote storage enabled!

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.