Coder Social home page Coder Social logo

Comments (5)

xianzhen avatar xianzhen commented on July 24, 2024

We are encountering the same issue.

from kafka-connect-hdfs.

Ishiihara avatar Ishiihara commented on July 24, 2024

That is the current design. I think the workaround here is to set flush.interval.ms to a reasonable value? Also, after #87 is merged, the scheduled flush can also be used as a workaround.

from kafka-connect-hdfs.

skyahead avatar skyahead commented on July 24, 2024

We faced the same issue, and we tried setting flush.interval.ms but it did not help if the stream is paused. The reason is shouldRotate() is only checked inside the while(!buffer.isEmpty()) loop. But when the stream is paused, the buffer is also empty.

In our case, our stream gets data every 5 minute and we flush.size is 50K in size. So, we always have 0 to 50K records kept in temp files until new data is coming.

Another issue we saw is that the first files per topic contain only one record, reason being lastRotate is zero and now - lastRotate >= rotateIntervalMs is always (or most likely) true.

I sent a PR to fix these issues.

Please have a look if it makes sense.

from kafka-connect-hdfs.

wjptak avatar wjptak commented on July 24, 2024

We have the same issue, using the latest Confluent Kafka. Thanks for the PR!!

from kafka-connect-hdfs.

cotedm avatar cotedm commented on July 24, 2024

This was resolved by #100

from kafka-connect-hdfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.