0

I'm trying to read from kafka in upsert mode. Everything works fine. But I noticed that scan.startup.mode is not supported.

Is my assumption right that in upsert mode kafka connector reads the whole topic from earliest offset by design or there is another logic? If I need to reduce amount of processed data should I reduce retention of topic?

Flink version: 1.14.6

2 Answers 2

1

Reading from the beginning is necessary for correctness. You can compact the topic to reduce the effort and storage required.

Sign up to request clarification or add additional context in comments.

Comments

0

Yes, scan.startup.mode is not supported.It specify as earliest-offset when create org.apache.flink.streaming.connectors.kafka.table.KafkaDynamicSource instance.

// always use earliest to keep data integrity
StartupMode earliest = StartupMode.EARLIEST;

2 Comments

I'm on Flink 1.14 and I'm speaking about UPSERT mode. You sending me the links to APPEND mode.
sorry for not notice it, I had update my answer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.