We are trying to connect with a IAM Auth enabled MSK via Couchbase Kafka connector.
Below properties are added to $KAFKA_HOME/config/connect-standalone.properties
in addition to regular configs required.
security.protocol=SASL_SSL sasl.mechanism=AWS_MSK_IAM sasl.jaas.config=software.amazon.msk.auth.iam.IAMLoginModule required; sasl.client.callback.handler.class=software.amazon.msk.auth.iam.IAMClientCallbackHandler
However, the connection to MSK fails with & below error message is logged repeatedly
Cancelled in-flight API_VERSIONS request with correlation id 1 due to node -1 being disconnected
Even after providing the auth related properties in $KAFKA_HOME/config/producer.properties
, no luck.
Can someone shed some light what additional config is required to establish the connectivity/get pass the above error?
Additional Details -
- Verified the EC2 is in same VPC as of hosted MSK
- Able to telnet to MSK & Couchbase server
- Able to create, alter, produce/consume etc. on MSK's topic via shell scripts in
$KAFKA_HOME/bin/*.sh
- Connector version - 4.1
- Kafka Version (for standalone execution) - 2.13_3.2.1
- AWS IAM Auth jar is on classpath & picked correctly
- MSK Kafka Version - 2.6.2