MASES.KNetConnect
3.1.2
dotnet tool install --global MASES.KNetConnect --version 3.1.2
dotnet new tool-manifest
dotnet tool install --local MASES.KNetConnect --version 3.1.2
#tool dotnet:?package=MASES.KNetConnect&version=3.1.2
nuke :add-package MASES.KNetConnect --version 3.1.2
title: Kafka™ Connect SDK of .NET suite for Apache Kafka™ _description: Describes how to use Kafka™ Connect SDK of .NET suite for Apache Kafka™
KNet: KNet Connect SDK
Create a new connector based on KNet Connect SDK
To start to use KNet Connect SDK and write a connector in C# the following steps can be used:
- Install the available templates following the template usage article
- Execute one the following commands:
- Sink connector:
dotnet new knetConnectSink - Source connector:
dotnet new knetConnectSource
- Update the code to define the needed behavior.
Execution
The connector can be used from a JVM hosted runtime and from a .NET hosted runtime. For an overview of configuration see Connect SDK
JVM hosted runtime
To use the connector from a JVM hosted runtime follow the instructions available at https://kafka.apache.org/documentation/#connect, https://kafka.apache.org/quickstart#quickstart_kafkaconnect or https://docs.confluent.io/platform/current/connect/userguide.html
.NET hosted runtime
KNet Connect .NET hosted runtime is available in two different formats:
- dotnet tool hosted on NuGet: check https://www.nuget.org/packages/MASES.KNetConnect/ and https://docs.microsoft.com/en-us/dotnet/core/tools/global-tools for installation deep instructions.
- Docker image hosted on GitHub or Docker Hub: follow instruction within the page and general instruction on https://docs.docker.com
The dotnet tool needs a JRE/JDK installed within the system
Usage
To use the .NET hosted runtime Connect interface (KNetConnect) runs a command like the following:
- dotnet tool
knetconnect -s connect-standalone.properties specific-connector.properties
knetconnect -d connect-distributed.properties
If the previous commands raise the error described in Intel CET and KNet the only solution is to apply the following workaround (within an elevated shell) and disable CET:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\knetconnect.exe" /v MitigationOptions /t REG_BINARY /d "0000000000000000000000000000002000" /f
- Docker image
docker run ghcr.io/masesgroup/knet -s connect-standalone.properties specific-connector.properties
docker run masesgroup/knet -s connect-standalone.properties specific-connector.properties
docker run ghcr.io/masesgroup/knet -d connect-distributed.properties
docker run masesgroup/knet -d connect-distributed.properties
Command line switch available
knetconnect accepts the following command-line switch to identify its behavior:
- d: starts a distributed version of Connector defined in the file identified from the subsequent parameter
- s: starts a standalone version of Connector defined in the file identified from the subsequent parameter
- k: starts a KNet version (Distributed or Standalone) accepting environment variables names containing the data associated to the parameters expected from the stanard version
- other parameters in sequence are:
- Apache Kafka™ Connect configuration file
- KNet Connector configuration file
- or in case of k switch is used the parameters are the environemnt variables containing the configuration data in the following form:
- key and value separated with =
- key-value pair separated with ||
- an example is key1=value1||key2=value2||key3
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.1.2 | 25 | 2/12/2026 |
| 3.1.1 | 106 | 11/28/2025 |
| 3.1.0 | 222 | 9/23/2025 |
| 3.0.4 | 202 | 9/23/2025 |
| 3.0.3 | 160 | 8/22/2025 |
| 3.0.2 | 275 | 8/5/2025 |
| 3.0.1 | 373 | 7/20/2025 |
| 3.0.0 | 130 | 7/19/2025 |
| 2.9.7 | 28 | 2/12/2026 |
| 2.9.6 | 102 | 11/28/2025 |
| 2.9.5 | 125 | 11/28/2025 |
| 2.9.4 | 175 | 10/5/2025 |
| 2.9.3 | 379 | 7/20/2025 |
| 2.9.2 | 198 | 7/17/2025 |
| 2.9.1 | 639 | 2/5/2025 |
| 2.9.0 | 588 | 12/23/2024 |
| 2.8.2 | 614 | 11/5/2024 |
| 2.8.1 | 567 | 9/20/2024 |
| 2.7.10 | 441 | 11/5/2024 |
| 2.6.7 | 427 | 11/5/2024 |