IBM Event Streams and IBM Event Automation

IBM Event Streams and IBM Event Automation

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Client disconnected from hosted Event Streams

    Posted Wed July 06, 2022 12:35 PM

    Hi Folks,
    newbie here so bear with me please :-)
    I've created our first event stream service on IBM Cloud. I have created credentials and they work when I try the test client.
    However, putting those same credentials into my own client fails with a continuous stream of warning messages: 

    Cancelled in-flight API_VERSIONS request with correlation id 2 due to node -5 being disconnected (elapsed time since creation: 15ms, elapsed time since send: 15ms, request timeout: 30000ms) (org.apache.kafka.clients.NetworkClient:341)
    It comes from this piece of code I think - but it means nothing to me.
    kafka/NetworkClient.java at master · a0x8o/kafka

    I think the credentials are working fine because if I put a bad key in then it very clearly fails to connect.
    I've looked at the test client's code and I think I have set the exact same properties.
    Here's my relevant properties:

    bootstrap.servers=broker-2-...etc.eventstreams.cloud.ibm.com:9093,etc. etc.
    sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required \
    username="token" \
    password="MY SECRET TOKEN";
    security.protocol=SASL_SSL
    sasl.mechanism=PLAIN
    ssl.protocol=TLSv1.2
    ssl.enabled.protocols=TLSv1.2
    ssl.endpoint.identification.algorithm=HTTPS

    Is this a version issue or something?
    It's happening with two different clients that I'm using (producer and consumer)

    many thanks for your help !
    John.



    ------------------------------
    John Hawkins
    Integration Consultant
    ------------------------------


  • 2.  RE: Client disconnected from hosted Event Streams
    Best Answer

    Posted Thu July 07, 2022 12:00 PM
    Solved !! I'm using kafka connect and hadn't realised that I've got to have both producer.sasl.mechanism= etc. and consumer.sasl etc. overridden (seems a bit daft to me to be honest - why not just let the super properties file override it if they are not present.) Hey ho !
    sorry to bother !

    ------------------------------
    John Hawkins
    ------------------------------



  • 3.  RE: Client disconnected from hosted Event Streams

    Posted Thu July 07, 2022 02:21 PM
    Awesome. glad you were able to figure this out!!

    ------------------------------
    Jina K
    ------------------------------