[KAFKA-56] This script requires curl. Created: 19/Aug/19  Updated: 27/Oct/23  Resolved: 19/Aug/19

Status: Closed
Project: Kafka Connector
Component/s: None
Affects Version/s: 0.1, 0.2
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Mostafa Ghadimi Assignee: Ross Lawley
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 18, Docker 19, Docker-compose 1.24


Attachments: File docker-compose.yml    

 Description   

Hi Ross,

 

I have running the docker-compose.yml of the [repository|https://github.com/mongodb/mongo-kafka/tree/master/docker] and edit some of it like the file I have attached.

 

The problem is that in the last step of running the connector, I face with the following error:

WARNING: Could not reach configured kafka system on http://localhost:8082
Note: This script requires curl.

What should I do to solve this problem?

 

Thanks,

Mostafa



 Comments   
Comment by Mostafa Ghadimi [ 19/Aug/19 ]

Hi @Ross,

 

I have also asked a [question on stackoverflow|https://stackoverflow.com/questions/57544201/implement-dockerized-kafka-sink-connector-to-mongo]. These docker-compose, Dockerfile and run.sh files are so complicated for my purpose. Is there any minimal configuration to connect kafka to mongodb without any issue?

Would you please upload the one or instruct me how to do that?

 

Thanks,

Mostafa

Comment by Ross Lawley [ 19/Aug/19 ]

Hi mostafa.ghadimi76@gmail.com

If you change the docker file then the run.sh script will also have to be updated. The reason you are seeing the error is because: WARNING: Could not reach configured kafka system on http://localhost:8082. Which is the rest proxy. It may be easier to create your own script once you are happy with the docker-compose steps required to get your system working.

For your own example you may want to change the script so it loads the MongoDB Kafka connector from the confluent hub rather than building it via gradle. Check out the Dockerfile as that has an example of loading the a connector (in this case its the datagen connector).

Just to let you know for future reference this project is for Kafka connector bugs or feature requests. The best place for questions regarding MongoDB usage or the Kafka connector specifics is the mongodb-user mailinglist or stackoverflow as you will reach a broader audience there. If your business requires an answer from MongoDB within a time frame then we do offer production support.

If you do follow up via one of the options above please post a link and I will follow the conversation there.

I hope that helps,

Ross

Comment by Mostafa Ghadimi [ 19/Aug/19 ]

P.S.: I also have curl installed on my local computer.

Generated at Thu Feb 08 09:05:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.