Giter Site home page Giter Site logo

Comments (6)

zpappa avatar zpappa commented on July 29, 2024

Agreed - it's a pain that I can't pull this from a maven repo - you can do this in mixed mode with sbt but it's a bit of extra and unnecessary work.

That said @cjolif - if you're not using sbt you can do this

wget https://github.com/ibm-messaging/message-hub-samples/raw/master/java/message-hub-login-library/messagehub.login-1.0.0.jar

mvn install:install-file -Dfile=./messagehub.login-1.0.0.jar -DgroupId=com.ibm.messagehub \
    -DartifactId=message-hub-login -Dversion=1.0 -Dpackaging=jar

rm messagehub.login-1.0.0.jar

from event-streams-samples.

nweedo3 avatar nweedo3 commented on July 29, 2024

The samples now use the Kafka 0.10.x library, which no longer require the Message Hub login library.

Thanks!

from event-streams-samples.

cjolif avatar cjolif commented on July 29, 2024

so you might probably want to remove it from here: https://github.com/ibm-messaging/message-hub-samples/tree/master/java/message-hub-liberty-sample/lib-message-hub if the sample does not use it anymore?

from event-streams-samples.

cjolif avatar cjolif commented on July 29, 2024

So I did a similar move on my code and it now fails with errors such as:

2016-08-28T21:58:39.28+0200 [App/0]      OUT WARN 2016-08-28 19:58:39,282 90516 org.apache.kafka.clients.NetworkClient [Thread-20] Bootstrap broker kafka01-prod01.messagehub.services.us-south.bluemix.net:9093 disconnected

The liberty sample here is working but if I modify it to subscribe to a pattern instead (like my app is doing) then it has the same issue as my own code. You'll reproduce the problem by changing:

kafkaConsumer.subscribe(topicList,

by

kafkaConsumer.subscribe(Pattern.compile("testTopic"),

in your sample.

Looks like there is a regression somewhere because it used to work fine?

from event-streams-samples.

cjolif avatar cjolif commented on July 29, 2024

Note that I setup a local Kafka 0.10 and I don't reproduce the problem, so it seems to be somewhat MessageHub specific?

from event-streams-samples.

mimaison avatar mimaison commented on July 29, 2024

@cjolif Although we recommend all our users to move to the new 0.10 client, we still support 0.9 clients hence keep a copy of our login module here.

Regarding the issue with pattern subscription, we've found the problem and the fix will reach production within a few days.

from event-streams-samples.

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.