Code Monkey home page Code Monkey logo

Comments (10)

edenhill avatar edenhill commented on August 26, 2024 1

It applies to all of the partitions, which is highly impractical if it werent for the symbolic offsets:

  • beginning
  • end
  • -NNNN (tail)
  • stored

from kcat.

ottomata avatar ottomata commented on August 26, 2024

So, it doesn’t work with manually entered offsets? Or, how does stored work with kafkacat? Is there a way to tell it to store and read offsets in a directory (like kafkatee?)

On Oct 16, 2014, at 12:18 PM, Magnus Edenhill [email protected] wrote:

It applies to all of the partitions, which is highly impractical if it werent for the symbolic offsets:

beginning
end
-NNNN (tail)
stored

Reply to this email directly or view it on GitHub.

from kcat.

edenhill avatar edenhill commented on August 26, 2024

It doesnt work with absolute offsets, no, or.. it works in the way that it'll use that offset for all partitions ,which is probably wrong.

Use -X topic.offset.store.path=dir to specify a directory.

I'm guessing you want something like:
kafkacat .... -t muh_topic -o 192 -p 0 -o 935 -p 1 -o 512 -p 2

  • partition 0: offset 192
  • partition 1: offset 935
  • partition 2: offset 512

right?

from kcat.

ottomata avatar ottomata commented on August 26, 2024

Ah! offset.store.path will work just fine, I think. Just tested this and I think it works.

Question, if I use -e, or -c , will the offset files be written to when kafkacat exits? Or will they only be written to every auto.commit.interval.ms?

On Oct 16, 2014, at 1:07 PM, Magnus Edenhill [email protected] wrote:

It doesnt work with absolute offsets, no, or.. it works in the way that it'll use that offset for all partitions ,which is probably wrong.

Use offset.store.path to specify a directory.

I'm guessing you want something like:
kafkacat .... -t muh_topic -o 192 -p 0 -o 935 -p 1 -o 512 -p 2

partition 0: offset 192
partition 1: offset 935
partition 2: offset 512
right?


Reply to this email directly or view it on GitHub.

from kcat.

edenhill avatar edenhill commented on August 26, 2024

Both, every commit.interval.ms and at shutdown.

from kcat.

ottomata avatar ottomata commented on August 26, 2024

What happens if SIGINT (ctrl-C?)

from kcat.

edenhill avatar edenhill commented on August 26, 2024

It will exit cleanly (and commit).

from kcat.

edenhill avatar edenhill commented on August 26, 2024

Huhm, maybe it wont, it will destroy rdkafka but doesnt wait for completion. I should fix that.

from kcat.

edenhill avatar edenhill commented on August 26, 2024

Do you desire the per-partition -o offset switch?

from kcat.

ottomata avatar ottomata commented on August 26, 2024

No, I don’t think so… That might be useful for debugging now and then, but the stored offset files should do just fine.

On Oct 17, 2014, at 3:27 AM, Magnus Edenhill [email protected] wrote:

Do you desire the per-partition -o offset switch?


Reply to this email directly or view it on GitHub.

from kcat.

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.