Coder Social home page Coder Social logo

Comments (3)

Ishiihara avatar Ishiihara commented on July 24, 2024

@jingw Thanks for reporting this. We definitely want to improve this behavior. Do you want to elaborate a bit more of your both options? We need a good design here as so that the scalability of the connector can be improved.

from kafka-connect-hdfs.

jingw avatar jingw commented on July 24, 2024

Thanks for the reply.

For (1), here's a patch I've been playing with: https://gist.github.com/jingw/5f427f09037c26a21978e299415e7d39 (not complete, not successfully tested)
The idea is that the write ahead log knows about the offsets, so we should be able to use that instead of recursively scanning HDFS.

(2) is a quick hack to reduce the scale of the problem. If I make my partitioning format partition/day/hour instead of day/hour, then each partition only needs to scan the day/hour for its own partition. Furthermore, if we're willing to assume some amount of ordering (e.g. data isn't out-of-order by more than a day), then we can assume the latest offset is in one of the day/hour directories. This approach would probably work for me, but I'm guessing it wouldn't be suitable for inclusion in your repo.

from kafka-connect-hdfs.

dosvath avatar dosvath commented on July 24, 2024

Addressed by #556

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.