You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "riccardoforzan (via GitHub)" <gi...@apache.org> on 2024/06/11 10:53:23 UTC

Re: [I] Connection problem with apache-airflow-providers-apache-kafka [airflow]

riccardoforzan commented on issue #31330:
URL: https://github.com/apache/airflow/issues/31330#issuecomment-2160446273

   Hello,
   
   I am encountering an issue with Apache Airflow 2.9.2 when attempting to test a connection to Kafka. I followed the integration guide as per the documentation [here](https://airflow.apache.org/docs/apache-airflow-providers-apache-kafka/stable/index.html). After setting up the connection to Kafka, testing the connection with the command apache airflow connections test <connection-name> results in a failure.
   
   It appears that the test utilizes KafkaBaseHook, and it fails at this specific statement: [base.py#L56](https://github.com/apache/airflow/blob/main/airflow/providers/apache/kafka/hooks/base.py#L56).
   
   Here is the configuration dictionary I am using
   
   ```json
   {
       "bootstrap.servers": "server",
       "security.protocol": "SASL_SSL",
       "sasl.mechanisms": "PLAIN",
       "sasl.username": "username",
       "sasl.password": "password"
   }
   ```
   
   Is there a known solution or workaround for this issue?
   
   Thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org