MASES.KNetConnect 3.1.1

dotnet tool install --global MASES.KNetConnect --version 3.1.1
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local MASES.KNetConnect --version 3.1.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=MASES.KNetConnect&version=3.1.1
                    
nuke :add-package MASES.KNetConnect --version 3.1.1
                    

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:

  1. Install the available templates following the template usage article
  2. Execute one the following commands:
  • Sink connector:
    dotnet new knetConnectSink
    
  • Source connector:
    dotnet new knetConnectSource
    
  1. 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 and https://kafka.apache.org/quickstart#quickstart_kafkaconnect.

.NET hosted runtime

KNet Connect .NET hosted runtime is available in two different formats:

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/knetconnect -s connect-standalone.properties specific-connector.properties
docker run masesgroup/knetconnect -s connect-standalone.properties specific-connector.properties
docker run ghcr.io/masesgroup/knetconnect -d connect-distributed.properties
docker run masesgroup/knetconnect -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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
3.1.1 91 11/28/2025
3.1.0 204 9/23/2025
3.0.4 192 9/23/2025
3.0.3 143 8/22/2025
3.0.2 263 8/5/2025
3.0.1 361 7/20/2025
3.0.0 115 7/19/2025
2.9.6 86 11/28/2025
2.9.5 107 11/28/2025
2.9.4 166 10/5/2025
2.9.3 367 7/20/2025
2.9.2 184 7/17/2025
2.9.1 619 2/5/2025
2.9.0 568 12/23/2024
2.8.2 591 11/5/2024
2.8.1 545 9/20/2024
2.8.0 499 8/6/2024
2.7.10 412 11/5/2024
2.7.9 612 9/20/2024
2.7.8 370 7/31/2024
2.7.7 381 7/30/2024
2.7.6 407 7/29/2024
2.7.5 566 7/2/2024
2.7.4 571 6/27/2024
2.7.3 595 6/24/2024
2.7.2 469 5/25/2024
2.7.1 418 5/18/2024
2.7.0 433 5/16/2024
2.6.7 409 11/5/2024
2.6.6 512 9/20/2024
2.6.5 663 9/16/2024
2.6.4 450 6/14/2024
2.6.3 283 6/11/2024
2.6.2 371 5/17/2024
2.6.0 744 3/1/2024
2.5.0 617 2/28/2024
2.4.3 528 2/11/2024
2.4.2 436 1/27/2024
2.4.1 422 1/21/2024
2.4.0 551 1/20/2024
2.3.0 1,198 11/25/2023
2.2.0 745 10/19/2023
2.1.3 710 10/11/2023
2.1.2 915 10/6/2023
2.1.1 867 10/5/2023
2.1.0 974 9/27/2023
2.0.2 808 8/2/2023
2.0.1 830 7/11/2023
2.0.0 762 7/8/2023
1.5.5 792 7/1/2023
1.5.4 670 5/28/2023
1.5.3 878 4/16/2023
1.5.2 1,009 4/11/2023
1.5.1 925 3/15/2023
1.5.0 1,116 2/9/2023
1.4.8 873 11/28/2022
1.4.7 955 11/23/2022