Unable to install kafka-connect-datagen:0.1.0
See original GitHub issueAfter running docker-compose up -d
in examples/cp-all-in-one
i get the following error:
$ docker-compose up -d
Building connect
Downloading context: https://github.com/confluentinc/kafka-connect-datagen/raw/master/Dockerfile-confluenthub 778B
Step 1/3 : FROM confluentinc/cp-kafka-connect:5.0.0
---> 7df8759460f7
Step 2/3 : ENV CONNECT_PLUGIN_PATH="/usr/share/java,/usr/share/confluent-hub-components"
---> Using cache
---> 54861200b09e
Step 3/3 : RUN confluent-hub install --no-prompt confluentinc/kafka-connect-datagen:0.1.0
---> Running in e32e29b5eae7
Running in a "--no-prompt" mode
java.net.UnknownHostException: api.hub.confluent.io
Error: Unknown error
ERROR: Service 'connect' failed to build: The command '/bin/sh -c confluent-hub install --no-prompt confluentinc/kafka-connect-datagen:0.1.0' returned a non-zero code: 7
I was able to avoid this error after i set connect
back to image: confluentinc/cp-kafka-connect:5.0.0
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:36 (17 by maintainers)
Top Results From Across the Web
confluentinc/kafka-connect-datagen
Install the connector from Confluent Hub to a local Confluent Platform · Build connector from latest code · Run connector in local install....
Read more >Unable to install kafka-connect-datagen:0.1.0
Unable to install kafka-connect-datagen :0.1.0. ... ERROR: Service 'connect' failed to build: The command '/bin/sh -c confluent-hub install ...
Read more >Quick Start for Apache Kafka using Confluent Platform ...
Download, install, and set up Confluent Community components: open source ... Install the Kafka Connect Datagen source connector using the Confluent Hub ...
Read more >Unable to run kafka connect datagen inside ...
I just added in the dockerfile and ran RUN confluent-hub install --no-prompt confluentinc/kafka-connect-datagen:0.4.0 inside the dockerfile.
Read more >cnfldemos/kafka-connect-datagen:0.1.3-5.3.0
cnfldemos/kafka-connect-datagen:0.1.3-5.3.0 ... VOLUME [/var/lib/kafka/data /etc/kafka/secrets] ... /bin/sh -c confluent-hub install --no-prompt.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you’re willing, here is one more suggestion to try: instead of building the connector image locally, run the CP connect image and then manually install the connector.
and replace it with the following line
Bring up the environment:
docker-compose up -d
Run the install command from within the connect container:
docker-compose exec connect confluent-hub install --no-prompt confluentinc/kafka-connect-datagen:0.1.0
So a weird series of events just happened. As suggested, I manually downloaded the zip file into my downloads folder using https://www.confluent.io/connector/kafka-connect-datagen/#download. I then made a new folder in confluent-5.2.1/share called “confluent-hub-components”. Then, just for fun I tried rerunning
confluent-hub install confluentinc/kafka-connect-datagen:0.1.2
and it worked fine. After that ran successfully,docker-compose up -d --build
ran without error.I dunno if it’s an issue with the folder not being there or if by manually downloading the thing I generated a valid certificate for the CLI to piggyback off of, but hopefully this provides some helpful info for resolvers (or at least a viable workaround).