Giter Site home page Giter Site logo

Comments (4)

mimaison avatar mimaison commented on July 29, 2024 1

@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.

dennisseidel avatar dennisseidel commented on July 29, 2024

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.

mimaison avatar mimaison commented on July 29, 2024

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.

dennisseidel avatar dennisseidel commented on July 29, 2024

@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)

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.