Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace cnfldemos/kafka-connect-datagen with confluentinc/cp-kafka-connect #32

Open
echang0929 opened this issue Sep 6, 2020 · 4 comments

Comments

@echang0929
Copy link

I've tried to replace image in "cp-all-in-one/cp-all-in-one-community/docker-compose.yml" cnfldemos/kafka-connect-datagen:0.3.2-5.5.0 with confluentinc/cp-kafka-connect:5.5.1, and provided some commands to add datagen package:

  connect:
    image: confluentinc/cp-kafka-connect:5.5.1
    hostname: connect
    container_name: connect
    depends_on:
      - zookeeper
      - broker
      - schema-registry
    ports:
      - "8083:8083"
    command:
      - sh
      - -exc
      - |
        confluent-hub install --no-prompt --component-dir /usr/share/confluent-hub-components/ confluentinc/kafka-connect-datagen:latest
        exec /etc/confluent/docker/run

So that this community cluster apply the latest version of kafka-connect. I've exercised all steps in tutorial doc https://docs.confluent.io/current/quickstart/cos-docker-quickstart.html successfully.

@ybyzek
Copy link
Contributor

ybyzek commented Sep 7, 2020

@echang0929 thanks for the suggestion. IIUC there is a substantial downside which is it sounds like this would require internet connectivity to run each time, because each time cp-all-in-one is brought up, it would require confluent-hub to pull the datagen connector.

@echang0929
Copy link
Author

Sure, I think so. Usually packages are not so big.

@ybyzek
Copy link
Contributor

ybyzek commented Sep 11, 2020

@echang0929 it's not about package size, it's the requirement to be online.

@echang0929
Copy link
Author

Sure. Or you could use docker commit to convert the container to image, then change image in docker file to this one, and comment all command block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants