Code Monkey home page Code Monkey logo

Comments (10)

OneCricketeer avatar OneCricketeer commented on June 28, 2024

--message.handler.args ‘test,test123’

A topic name cannot contain commas. Here you have made the prefix contain them

from kafka-examples.

chinastockproducts avatar chinastockproducts commented on June 28, 2024

Those are 2 different topic names test is from source and test123 is on consumer side.

from kafka-examples.

OneCricketeer avatar OneCricketeer commented on June 28, 2024

I think you're misinterpreting the arguments then

public TopicSwitchingHandler(String topicPrefix) {
        this.topicPrefix = topicPrefix;
    }

Therefore, you're setting this.topicPrefix="test,test123"

from kafka-examples.

chinastockproducts avatar chinastockproducts commented on June 28, 2024

ok so we need to use test.test123 right?

from kafka-examples.

OneCricketeer avatar OneCricketeer commented on June 28, 2024

Depends on your goal.

If you want to rename multiple topics, look at https://github.com/opencore/mirrormaker_topic_rename

from kafka-examples.

chinastockproducts avatar chinastockproducts commented on June 28, 2024

i followed opencore with the arguments--message.handler.args ‘test,test123’ . But i dont see topic test123 receiving messages from test. Is it any issue related to version of kafka..we are using kafka 1.1.0

from kafka-examples.

OneCricketeer avatar OneCricketeer commented on June 28, 2024

If your source topic name is test, then your whitelist is only watching topics starting with test_, so the test topic itself is ignored...

This project is adding a prefix. The other project is completely renaming a topic. Using the format <src>,<dest>;<src2>,<dest2>

from kafka-examples.

OneCricketeer avatar OneCricketeer commented on June 28, 2024

If you look at the example given there, you'd see their source topic does contain an underscore - test_source

--message.handler com.opencore.RenameTopicHandler --message.handler.args 'test_source,test_target'

Meanwhile, this project does not have an underscore in the topic name, and serves a different purpose

--message.handler com.shapira.examples.TopicSwitchingHandler --message.handler.args dc1 --whitelist mm1

It adds dc1 onto mm1

from kafka-examples.

ashuit87 avatar ashuit87 commented on June 28, 2024

JavaSessionize.avro.LogLinec reference unresolved in the code, kindly look into it

from kafka-examples.

OneCricketeer avatar OneCricketeer commented on June 28, 2024

@ashuit87 No it isn't. Use mvn compile to generate it

from kafka-examples.

Related Issues (7)

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.