Comments (4)
@dennisseidel We've now updated the Nodejs sample to run the latest node-rdkafka (0.10).
Closing this, if you still have issues, feel free to re-open
from event-streams-samples.
Ok the solution seems to be to change the parameter a bit to the following:
'metadata.broker.list': opts.brokers,
'security.protocol': 'SASL_SSL',
'ssl.ca.location': opts.calocation,
'sasl.mechanisms': 'PLAIN',
'sasl.username': opts.username,
'sasl.password': opts.password,
'api.version.request': true
then it works.
Update: Ok that was to fast from my side, it looked fine but now it throws the following:
{ severity: 3, fac: 'FAIL', message: '[thrd:sasl_ssl://kafka02-prod01.messagehub.services.us-south.bluemix.]: sasl_ssl://kafka02-prod01.messagehub.services.us-south.bluemix.net:9093/1: SASL mechanism handshake failed: Local: Timed out: broker\'s supported mechanisms: (n/a)' } Error from consumer:{"origin":"local","message":"authentication failure","code":-1,"errno":-1,"stack":"Error: Local: Authentication failure"}
from event-streams-samples.
Yes we plan to update our sample app in the next few weeks.
Is there a particular feature you need from node-rdkafka 0.8 ? If not, we recommend you stick with 0.6.3 for now as it's the version we've tested the most.
from event-streams-samples.
@mimaison Thanks for the answer. Not specifically I was just using node-rdkafka and did not take a look which version you used, so I was confused when it did not work :)
But it seems that:
'metadata.broker.list': opts.brokers,
'security.protocol': 'SASL_SSL',
'ssl.ca.location': opts.calocation,
'sasl.mechanisms': 'PLAIN',
'sasl.username': opts.username,
'sasl.password': opts.password,
'api.version.request': true
works. But also the structure of the message object has change. Anyway it works now for me so everything good. Thanks again for the response.
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.