RWaltersMA / azure-event-hubs-mongo

Sample code to showcase using the MongoDB Connector for Apache Kafka with Azure Event Hubs
5 stars 2 forks source link

Error on connection #1

Open RafaMunoz opened 3 years ago

RafaMunoz commented 3 years ago

Hi,

I try to do the same with this respository but when the docker container start i have the next error:

[kafka-admin-client-thread | adminclient-1] WARN org.apache.kafka.clients.NetworkClient - [AdminClient clientId=adminclient-1] Connection to node -1 (myeh.servicebus.windows.net/13.69.111.138:9093) terminated during authentication. This may happen due to any of the following reasons: (1) Authentication failed due to invalid credentials with brokers older than 1.0.0, (2) Firewall blocking Kafka TLS traffic (eg it may only allow HTTPS traffic), (3) Transient network issue.

I have check that the port 9093 and 443 is open and the credentials are okey because from python script i send data.

Can you help me?

Thanks

sachinarora87 commented 2 years ago

It is failing due to $ ($ConnectionString) in the env variable. Just put single quotes around it. like below

SASL_CONFIG='org.apache.kafka.common.security.plain.PlainLoginModule required username="$ConnectionString" password="{{REPLACE WITH AZURE EVENT HUB ENDPOINT}}";'