[英]Kafka confluent with docker setup - mongodb connector
I have downloaded confluent platform and setup the docker by using this link https://github.com/confluentinc/cp-all-in-one/blob/7.2.1-post/cp-all-in-one/docker-compose.yml .我已经下载了 confluent 平台并使用此链接设置了 docker https://github.com/confluentinc/cp-all-in-one/blob/7.2.1-post/cp-all-in-one/docker-compose .yml 。 I have added mongodb connector(all.jar) file inside confluent_hub_components.
我在 confluent_hub_components 中添加了 mongodb 连接器(all.jar)文件。 When I try to connect sink connector it not connecting my local mongodb uri.
当我尝试连接接收器连接器时,它没有连接我的本地 mongodb uri。 I am getting
error unable to connect
server.我收到
error unable to connect
。 why I am getting this error?, What did I wrong?为什么我会收到此错误?,我做错了什么? Error screenshot attached.
附上错误截图。
localhost
refers to the Control Center container, not any external MongoDB server. localhost
指的是控制中心容器,而不是任何外部 MongoDB 服务器。
That compose file doesn't have any Mongo servers.该撰写文件没有任何 Mongo 服务器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.