Kafka连接器无法连接AWS MSK

发布于 2025-02-04 07:30:17 字数 1023 浏览 4 评论 0原文

我正在尝试配置AWS中的MSK Connect,以下是配置。

INFO [AdminClient clientId=adminclient-1] Metadata update failed (org.apache.kafka.clients.admin.internals.AdminMetadataManager:235)
[Worker-02003b81ffe0ee9c3] [2022-06-02 14:26:40,955] INFO [AdminClient clientId=adminclient-1] Metadata update failed (org.apache.kafka.clients.admin.internals.AdminMetadataManager:235)
[Worker-02003b81ffe0ee9c3] org.apache.kafka.common.errors.TimeoutException: Call(callName=fetchMetadata, deadlineMs=1654180000954, tries=1, nextAllowedTryMs=1654180001055) timed out at 1654180000955 after 1 attempt(s)

按照 https:// https:///aws.amazon.com/premiumssupport /知识中心/msk-connector-connect-errors/我已经为MSK连接器打开了所有流量,以便能够达到MSK群集,但我注意到超时错误。

连接器和群集都在同一子网中,并且使用相同的安全组ID。我能够从同一子网中的VM触电到经纪人。

注意:我启用了明文,没有身份验证。我还提供了适当的IAM许可和角色。这是验证的。

I am trying to configure MSK connect in AWS and the below is the configuration.

INFO [AdminClient clientId=adminclient-1] Metadata update failed (org.apache.kafka.clients.admin.internals.AdminMetadataManager:235)
[Worker-02003b81ffe0ee9c3] [2022-06-02 14:26:40,955] INFO [AdminClient clientId=adminclient-1] Metadata update failed (org.apache.kafka.clients.admin.internals.AdminMetadataManager:235)
[Worker-02003b81ffe0ee9c3] org.apache.kafka.common.errors.TimeoutException: Call(callName=fetchMetadata, deadlineMs=1654180000954, tries=1, nextAllowedTryMs=1654180001055) timed out at 1654180000955 after 1 attempt(s)

As per https://aws.amazon.com/premiumsupport/knowledge-center/msk-connector-connect-errors/ I have opened all traffic for the MSK connector to be able to reach the msk cluster, yet I notice timeout errors.

The connector and the cluster are both in same subnets and uses same security group ID. I ma able to telnet to the broker from a VM in the same subnet.

Note: I have plaintext enabled and no authentication. I have also given proper IAM permission and role attached. This is verified.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

疯狂的代价 2025-02-11 07:30:17

如果解决方案有助于某人,则添加解决方案。
https://docs.aws.amazon.com/ msk/festment/developerguide/mkc-tutorial-setup.html

我必须创建一个VPC端点,如上所述,并将我的Kafka使用的子网路由表关联。

另外还要确保您的SG具有正确的入站和出站规则

Adding the solution in case if it helps someone.
https://docs.aws.amazon.com/msk/latest/developerguide/mkc-tutorial-setup.html

I had to create a vpc endpoint as mentioned in the above doc and also associate the subnet route tables that my kafka uses.

Additionally also make sure your SG's have correct inbound and outbound rules

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文