Comments (6)
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.
The samples now use the Kafka 0.10.x library, which no longer require the Message Hub login library.
Thanks!
from event-streams-samples.
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.
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.
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.
@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)
- Server returned HTTP response code: 403 for URL HOT 2
- any way to avoid the ca_location flag? HOT 4
- ModuleNotFoundError: No module named 'confluent_kafka' HOT 2
- node-rdkafka build/run: dyld: Symbol not found: _timespec_get - MacOS
- Does the event-stream support the schema-registry in IBM public cloud? HOT 2
- starting node sample on windows
- Error: Cannot create 1 partition(s) for topic kafka-nodejs-console-sample-topic HOT 1
- Clarification regarding SASL Authentication with Event Streams HOT 6
- Connectors not listed HOT 2
- Does Event Stream support Spark Kafka Streaming? HOT 2
- Docker build fails for kafka-nodejs-console-sample due to ubuntu:latest base image HOT 2
- improve UX for kubernetes samples by creating secret using --from-file
- k8s lab kafka-java-console-schema-sample fails because image is not on dockerhub HOT 1
- [Question] Out of curiosity, is `ssl.ca.location` now necessary to connect with Event Streams? HOT 8
- kafka-nodejs-console-sample does not build on MacOS Catalina 10.15.6
- Kafka Connect REST API Security HOT 1
- Where Do You Download the PEM Certificate in IBM Cloud HOT 9
- java sample doesn't build with gradle 7 which is latest version as of Apr 09, 2021 HOT 2
- Upgrade the examples to use the ibm supplied APIs
- NodeJS documentation for local confusing when using Cloud Pak for for Integration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from event-streams-samples.