confluentinc / cp-docker-images

[DEPRECATED] Docker images for Confluent Platform.
Apache License 2.0
1.14k stars 703 forks source link

Getting Unkown error when installing MQTT Connector with confluent-hub install behind a firewall #895

Open langalibalele opened 3 years ago

langalibalele commented 3 years ago

I expanded the connect container in docker-composite.yml in order to install, create and deploy the MQTT Connector (kafka-connect-mqtt): [see Apache Kafka / Kafka Connect / MQTT / Mosquitto Live Demo]

` command:

When directly conected to the internet, docker-compose up -d yields correct installation under the conect container:

Downloading component Kafka Connect MQTT 1.4.0, provided by Confluent, Inc. from Confluent Hub and installing into /usr/share/confluent-hub-components Adding installation directory to plugin path in the following files: /etc/kafka/connect-distributed.properties /etc/kafka/connect-standalone.properties /etc/schema-registry/connect-avro-distributed.properties /etc/schema-registry/connect-avro-standalone.properties Completed Waiting for Kafka Connect to start listening on localhost:8083 ⏳ .... Thu Feb 4 19:44:40 UTC 2021 Kafka Connect listener HTTP state: 000 (waiting for 200)

When connecting through our company firewall, calling docker-compose up -d yields the follwing in the connect container: Downloading component Kafka Connect MQTT 1.4.0, provided by Confluent, Inc. from Confluent Hub and installing into /usr/share/confluent-hub-components javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Error: Unknown error Waiting for Kafka Connect to start listening on localhost:8083 ⏳

I have not found a solution to this yet. Apparantly adding the *.confluent.io cert to java cacerts does not resolve the issue. I suspect the firewall is blocking download of the jar files in \lib of the connector