简体   繁体   English

Confluent Kafka 连接器配置与 C# / .net

[英]Confluent Kafka Connector Configuration with C# / .net

I'm trying to build a connector to go into the confluent kafka library.我正在尝试将 go 的连接器构建到融合的 kafka 库中。 I have seen many examples in java that use configDef to define the configuration options.我在 java 中看到了很多使用 configDef 来定义配置选项的示例。 However I havent seen anything doing the same in C# and i'm unsure about how to achieve this.但是我在 C# 中没有看到任何东西做同样的事情,我不确定如何实现这一点。

Has anyone made a .net connector for the confluent kafka library?有没有人为 confluent kafka 库制作 .net 连接器?

ConfigDef is a JVM-only class. Essentially, it's just a Dictionary, with some extra functionality, though ConfigDef 是一个 JVM-only class。本质上,它只是一个字典,虽然有一些额外的功能

There is no Kafka Connect compatible API for C#. C#没有Kafka Connect兼容API。

If you meant that you want to start a connector from C#, you'd just make a HTTP client with a JSON request;如果你的意思是你想从 C# 启动一个连接器,你只需创建一个带有 JSON 请求的 HTTP 客户端; you don't need any ConfigDef你不需要任何 ConfigDef

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM