Giter Site home page Giter Site logo

Topic Admin API about kcat HOT 8 OPEN

edenhill avatar edenhill commented on June 12, 2024 14
Topic Admin API

from kcat.

Comments (8)

MartinX3 avatar MartinX3 commented on June 12, 2024 37

Any progress?

from kcat.

clescot avatar clescot commented on June 12, 2024 22

Hi, for your information, kakfa 0.10.1.0 ships topic creation/removal feature in the protocol(kafka-2945 and kafka-2946).
I hope kafkacat will ship soon this feature. :-)
cheers,
Charles.

from kcat.

edenhill avatar edenhill commented on June 12, 2024 6

Yes!
And the Kafka core team is working on adding such support to the protocol so as soon as that is ready I will implement it in librdkafka/kafkacat aswell.

More info.
https://cwiki.apache.org/confluence/display/KAFKA/Kafka+Command+Line+and+Related+Improvements

from kcat.

edenhill avatar edenhill commented on June 12, 2024 4

CLI ideas:

Natural language syntax:

$ kafkacat -b mybroker -A <admin command>

where <admin command> is an expressive command tree, like:
CREATE TOPIC ( <name> [WITH] <num_parts> PARTITIONS AND] [ REPLICATION FACTOR <replf> | REPLICA ASSIGNMENT 0=1, 1=1, 2=5, 3=5 ]` [AND CONFIG key=value, key=value, ] ), ...

e.g.:

$ kafkacat -b mybroker -A create topic mytest with 3 partitions and a replication factor of 5, myothertopic with 2 partitions and replica assignment 0=1, 1=19, thirdtopic with 10 partitions and replication factor 2 and config compression.codec=producer

(this raises more questions than answers)

from kcat.

edenhill avatar edenhill commented on June 12, 2024 3

Underlying KIP-4 support in librdkafka is scheduled for Q1, kafkacat integration will follow shortly after.

from kcat.

repl-samuel avatar repl-samuel commented on June 12, 2024

Hi, is there a plan for this item to be done?

from kcat.

AntonOfTheWoods avatar AntonOfTheWoods commented on June 12, 2024

Has this been implemented in the meantime @edenhill ? I couldn't see anything in the docs.

from kcat.

juvenn avatar juvenn commented on June 12, 2024
kafkacat -b mybroker -A mytest,partitions=3,replicas=5,compression.codec=producer

Probably, we can reduce that to create one topic at a time, instead of many. And use k=v format, which will be both easier to read for human, and parse for machine.

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.