• Stars
    star
    117
  • Rank 292,643 (Top 6 %)
  • Language
    Scala
  • License
    Apache License 2.0
  • Created almost 7 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Kafka Connect SAP is a set of connectors, using the Apache Kafka Connect framework for reliably connecting Kafka with SAP systems

Java CI with Maven License REUSE status

Kafka Connectors for SAP

Kafka Connect SAP is a generic set of connectors, using the Apache Kafka Connect framework for reliably connecting Kafka with SAP systems

Table of contents

Install

To install the connector from source,

Clone this repository to your local desktop, and then bring up a command prompt in the directory.

and use the following command.

mvn clean install -DskipTests

which should produce the Kafka Connector jar file kafka-connector-hana_m-n.jar in the modules/scala_m/target folder, where m corresponds to Scala binary version and n corresponds to the connector version.

Include the Jdbc Jar

For SAP Hana

Please refer to SAP Developer License Agreement for the use of the driver jar.

QuickStart

There are some examples that can be executed by following the instructions. For the detail of these examples, refer to Examples.

Running Kafka Connect

The demo examples included in Examples use Kafka Connect running in different environments such as standalone and distributed modes. For general information on how to run Kafka Connect, refer to Kafka Connect documentation

Configuration

The kafka connector for SAP Systems provides a wide set of configuration options both for source & sink.

The full list of configuration options for kafka connector for SAP Systems is as follows:

  • Sink

    • topics - This setting can be used to specify a comma-separated list of topics. Must not have spaces.

    • auto.create - This setting allows the creation of a new table in SAP DBs if the table specified in {topic}.table.name does not exist. Should be a Boolean. Default is false.

    • auto.evolve - This setting allows the evolution of the table schema with some restriction, namely when the record contains additional nullable fields that are not present previously, the corresponding columns will be added. In contrast, when the record contains less fields, the table schema will not be changed. Should be a Boolean. Default is false.

    • auto.schema.update - Whether to auto update Schema from Database for every record flush. Default is false.

    • batch.size - This setting can be used to specify the number of records that can be pushed into SAP DB table in a single flush. Should be an Integer. Default is 3000.

    • max.retries - (deprecated) This setting can be used to specify the maximum no. of retries that can be made to re-establish the connection to SAP DB in case the connection is lost. Should be an Integer. Default is 10. This property is currently ignored as the task will automatically retry when a connection error results in a RetriableException for both source and sink tasks.

    • {topic}.table.name - This setting allows specifying the SAP DBs table name where the data needs to be written to. Should be a String. Must be compatible to SAP DB Table name like "SCHEMA"."TABLE".

    • {topic}.table.type - This is a DB specific configuration setting which allows creation of Row & Column tables if auto.create is set to true. Default value is column. And supported values are column, row.

    • {topic}.insert.mode - This setting can be used to specify one of the available insertion modes insert and upsert. Default is insert.

    • {topic}.delete.enabled - This setting can be used to allow the deletion of the record when its corresponding tombstone record is received by the connector. Default is false.

    • {topic}.pk.mode - This setting can be used to specify the primary key mode required when auto.create is set to true & the table name specified in {topic}.table.name does not exist in SAP DB. Default is none. And supported values are record_key, record_value.

    • {topic}.pk.fields - This setting can be used to specify a comma-separated list of primary key fields when {topic}.pk.mode is set to record_key or record_value. Must not have spaces.

    • {topic}.table.partition.mode - This is a SapDB Sink specific configuration setting which determines the table partitioning in SAP DB. Default value is none. And supported values are none, hash, round_robin.

    • {topic}.table.partition.count - This is a SapDB Sink specific configuration setting which determines the number of partitions the table should have. Required when auto.create is set to true and table specified in {topic}.table.name does not exist in SAP DBs. Should be an Integer. Default value is 0.

  • Source

    • topics - This setting can be used to specify a comma-separated list of topics. Must not have spaces.

    • mode - This setting can be used to specify the mode in which data should be fetched from SAP DB table. Default is bulk. And supported values are bulk, incrementing.

    • queryMode - This setting can be used to specify the query mode in which data should be fetched from SAP DB table. Default is table. And supported values are table, query ( to support sql queries ). When using queryMode: query it is also required to have query parameter defined. This query parameter needs to be prepended by TopicName. If the incrementing.column.name property is used together to constrain the result, then it can be omitted from its where clause.

    • batch.max.rows - Max rows to include in a single batch call. Should be an integer. Default is 100.

    • {topic}.table.name - This setting allows specifying the SAP DB table name where the data needs to be read from. Should be a String. Must be compatible to SAP DB Table name like "SCHEMA"."TABLE".

    • {topic}.query - This setting allows specifying the query statement when queryMode is set to query. Should be a String.

    • {topic}.poll.interval.ms - This setting allows specifying the poll interval at which the data should be fetched from SAP DB table. Should be an Integer. Default value is 60000.

    • {topic}.incrementing.column.name - In order to fetch data from a SAP DB table when mode is set to incrementing, an incremental ( or auto-incremental ) column needs to be provided. The type of the column can be numeric types such as INTEGER, FLOAT, DECIMAL, datetime types such as DATE, TIME, TIMESTAMP, and character types VARCHAR, NVARCHAR containing alpha-numeric characters. This considers SAP DB Timeseries tables also. Should be a valid column name ( respresented as a String) present in the table. See data types in SAP HANA

    • {topic}.partition.count - This setting can be used to specify the no. of topic partitions that the Source connector can use to publish the data. Should be an Integer. Default value is 1.

    • numeric.mapping - This setting can be used to control whether the DECIMAL column types are mapped to the default decimal type or one of the primitive types. The supported values are none, best_fit, and best_fit_eager_double. The default value is none.

  • Transformations

    • EscapeFieldNameCharacters - This SMT translates the field names by escaping certain characters of the names to make them valid in the naming scheme of the target. Each escaped character is represented in a sequence of UTF-8 bytes, each in form <esc><xx>, where <esc> is the specified escape character and <xx> is the hexiadecimal value of the byte.
      • type - com.sap.kafka.connect.transforms.EscapeFieldNameCharacters$Key and com.sap.kafka.connect.transforms.EscapeFieldNameCharacters$Value
      • escape.char - The escape character to be used.
      • valid.chars.default - This value specifies the valid character set used in escaping those characters outside of the specified set. When this value is not set, the names are unescaped.
      • valid.chars.first - This value optinally specifies the valid character set for the first character if this difers from the rest.

Examples

Folder examples includes some example scenarios. In addtion, the unit tests provide examples on every possible mode in which the connector can be configured.

How to obtain support

We welcome comments, questions, and bug reports. Please create an issue to obtain support.

Contributing

Contributions are accepted by sending Pull Requests to this repo.

Developer Certificate of Origin (DCO)

Due to legal reasons, contributors will be asked to accept a DCO when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses the standard DCO text of the Linux Foundation.

Compatibility

compatiblity-matrix.txt

Todos

Currently only SAP Hana is supported.

License

Copyright (c) 2015-2022 SAP SE or an SAP affiliate company and kafka-connect-sap contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.

More Repositories

1

openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
JavaScript
2,770
star
2

ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
TypeScript
1,438
star
3

styleguides

This repository provides SAP style guides for coding and coding-related topics.
Markdown
1,301
star
4

macOS-enterprise-privileges

For Mac users in an Enterprise environment, this app gives the User control over administration of their machine by elevating their level of access to Administrator privileges on macOS. Users can set the time frame using Preferences to perform specific tasks such as install or remove an application.
Objective-C
1,039
star
5

jenkins-library

Jenkins shared library for Continuous Delivery pipelines.
Go
710
star
6

luigi

Micro frontend framework
JavaScript
697
star
7

spartacus

Spartacus is a lean, Angular-based JavaScript storefront for SAP Commerce Cloud that communicates exclusively through the Commerce REST API.
TypeScript
673
star
8

PyRFC

Asynchronous, non-blocking SAP NW RFC SDK bindings for Python
Python
441
star
9

ui5-tooling

An open and modular toolchain to develop state of the art applications based on the UI5 framework
JavaScript
421
star
10

SapMachine

An OpenJDK release maintained and supported by SAP
Java
412
star
11

openSAP-ui5-course

Repository for content related to the openSAP courses "Evolved Web Apps with SAPUI5"
JavaScript
384
star
12

ui5-webcomponents-react

A wrapper implementation for React of the UI5 Web Components that are compliant with the SAP Fiori User Experience
TypeScript
354
star
13

abap-cleaner

ABAP cleaner applies 70+ cleanup rules to ABAP code at a single keystroke
Java
346
star
14

node-hdb

SAP HANA Database Client for Node
JavaScript
314
star
15

credential-digger

A Github scanning tool that identifies hardcoded credentials while filtering the false positive data through machine learning models 🔒
Python
299
star
16

macOS-icon-generator

Icons for macOS is the easiest way to create customized app icons in PNG format for your company’s internal app store. No graphic skills needed.
C
276
star
17

fundamental

Fiori Fundamentals is a component library and SASS toolkit for building SAP user interfaces with any technology.
Nunjucks
264
star
18

InfraBox

InfraBox is a cloud native continuous integration system
Python
261
star
19

openui5-sample-app

OpenUI5 Sample App
JavaScript
257
star
20

code-pal-for-abap

code pal for ABAP is a highly configurable engine, fully integrated into the ABAP development framework ensuring Cloud’s built-in quality.
ABAP
247
star
21

fundamental-ngx

Fundamental Library for Angular is SAP Design System Angular component library
TypeScript
232
star
22

node-rfc

Asynchronous, non-blocking SAP NW RFC SDK bindings for Node.js
C++
232
star
23

generator-easy-ui5

Meta-generator various project types within the UI5 Universe
JavaScript
200
star
24

fundamental-vue

Vue.js components implementation of Fundamental Library Styles guidelines. The library is aiming to provide a Vue.js implementation of the components designed in Fundamental Library Styles.
Vue
189
star
25

ui5-typescript

Tooling to enable TypeScript support in SAP UI5 projects
TypeScript
182
star
26

fundamental-react

React implementation of the reusable component library designed in Fundamental Library Styles
JavaScript
178
star
27

python-pyodata

Enterprise-ready Python OData client
Python
169
star
28

go-hdb

SAP HANA Database Client for Go
Go
152
star
29

fundamental-styles

SAP Fiori, theme-able, accessible component library for building SAP user interfaces with any web technology.
JavaScript
151
star
30

cloud-mta-build-tool

Multi-Target Application (MTA) build tool for Cloud Applications https://sap.github.io/cloud-mta-build-tool
Go
135
star
31

odata-vocabularies

SAP Vocabularies for semantic markup of structured data published via OData (www.odata.org) services.
JavaScript
135
star
32

ui5-inspector

With the UI5 Inspector, you can easily debug and support your OpenUI5/SAPUI5 based apps.
JavaScript
135
star
33

project-portal-for-innersource

Lists all InnerSource projects of a company in an interactive and easy to use way. Can be used as a template for implementing the "InnerSource portal" pattern by the InnerSource Commons community.
JavaScript
135
star
34

cloud-security-services-integration-library

Integration libraries and samples for authenticating users and clients bound to XSUAA authentication and authorization service or identity authentication service.
Java
125
star
35

cloud-sdk-js

Use the SAP Cloud SDK for JavaScript / TypeScript to reduce development effort when building applications on SAP Business Technology Platform that communicate with SAP solutions and services such as SAP S/4HANA Cloud, SAP SuccessFactors, and many others.
HTML
124
star
36

ui5-uiveri5

End-to-end testing framework for SAPUI5
JavaScript
120
star
37

sap-btp-service-operator

SAP BTP service operator enables developers to connect Kubernetes clusters to SAP BTP accounts and to consume SAP BTP services within the clusters by using Kubernetes native tools.
Go
120
star
38

C4CODATAAPIDEVGUIDE

The SAP Cloud for Customer OData API Developer’s Guide complements the SAP Cloud for Customer OData API Reference (a link will be provided later) with usage details and samples for SAP Cloud for Customer OData API in a format that is most convenient to developers. Furthermore, it also covers known restrictions and limitations.
Java
108
star
39

olingo-jpa-processor-v4

The JPA Processor fills the gap between Olingo V4 and the database, by providing a mapping between JPA metadata and OData metadata, generating queries and supporting the entity manipulations.
Java
108
star
40

sqlalchemy-hana

SQLAlchemy Dialect for SAP HANA
Python
107
star
41

project-kb

Home page of project "KB"
Python
106
star
42

curated-resources-for-domain-driven-design

You want to get started with Domain-Driven Design or are looking for advanced learning resources in this topic? Then this collection of curated learning resources is a good place to check out.
106
star
43

sap-btp-reference-architectures

This repository contains "SAP BTP reference architectures" based on the official BTP solution diagrams and icons..
101
star
44

yeoman-ui

Provide rich user experience for Yeoman generators using VSCode extension or the browser.
TypeScript
97
star
45

cloud-sdk-ios-fiori

SwiftUI implementation of the SAP Fiori for iOS Design Language.
Swift
93
star
46

ui5-cli

UI5 Tooling: CLI
JavaScript
92
star
47

e-mobility-charging-stations-simulator

OCPP-J charging stations simulator
TypeScript
86
star
48

script-to-package-tool-for-macos

Script2Pkg is an application for creating payload-free installer packages for macOS.
HTML
86
star
49

gorfc

SAP NW RFC Connector for GO
Go
83
star
50

open-ux-tools

Enable community collaboration to jointly promote and facilitate best in class tooling capabilities
TypeScript
77
star
51

Webchat

The SAP Conversational AI webchat let you deploy a bot straight to a website
JavaScript
73
star
52

cf-java-logging-support

The Java Logging Support for Cloud Foundry supports the creation of structured log messages and the collection of request metrics
Java
71
star
53

btp-solution-diagrams

SAP Business Technology Platform solution diagram repository, based on the official SAP BTP Solution diagram guideline. This has been designed in accordance with the SAP Fiori Horizon principles and color palette which provides a holistic and pleasing aesthetic and user experience.
TypeScript
70
star
54

devops-docker-images

A collection of Dockerfiles for images that can be used to implement Continuous Delivery pipelines for SAP development projects with project "Piper" or any other CD tool.
JavaScript
68
star
55

ui5-builder

UI5 Tooling: Builder
JavaScript
67
star
56

karma-ui5

A Karma plugin for UI5
JavaScript
66
star
57

cloud-s4-sdk-examples

Runnable example applications that showcase the usage of the SAP Cloud SDK.
Java
65
star
58

openui5-docs

OpenUI5 Markdown Documentation
65
star
59

machine-learning-lab

ML Lab enables teams to be more productive in delivering machine learning solutions for their products and datasets.
JavaScript
65
star
60

fundamental-tools

Web applications with ABAP, done simple.
HTML
64
star
61

terraform-provider-btp

Terraform provider for SAP BTP
Go
63
star
62

apibusinesshub-integration-recipes

Accelerate integration projects using SAP Cloud Platform Integration with crowdsourced best practices, curated by experts, designed for developers.
Java
62
star
63

risk-explorer-for-software-supply-chains

A taxonomy of attacks on software supply chains in the form of an attack tree, based on and linked to numerous real-world incidents and other resources. The taxonomy as well as related safeguards can be explored using an interactive visualization tool.
JavaScript
61
star
64

project-foxhound

A web browser with dynamic data-flow tracking enabled in the Javascript engine and DOM, based on Mozilla Firefox (https://github.com/mozilla/gecko-dev). It can be used to identify insecure data flows or data privacy leaks in client-side web applications.
57
star
65

power-monitoring-tool-for-macos

Power Monitor is an application that measures and reports the power consumption of a Mac.
Objective-C
56
star
66

apibusinesshub-api-recipes

Accelerate integration projects using SAP Cloud Platform API Management with crowdsourced best practices, curated by experts, designed for developers.
JavaScript
54
star
67

fosstars-rating-core

A framework for defining ratings for open source projects. In particular, the framework offers a security rating for open source projects that may be used to assess the security risk that comes with open source components.
Java
54
star
68

ui5-language-assistant

VSCode Extension and Editor Tooling for SAPUI5
TypeScript
51
star
69

abap-atc-cr-cv-s4hc

ABAP test cockpit cloud readiness check variants for SAP S/4HANA Cloud
TypeScript
51
star
70

abap-file-formats

File formats that define and specify the file representation for ABAP development objects
ABAP
50
star
71

open-ux-odata

Enable community collaboration to jointly promote and facilitate best in class framework and tooling capabilities when working with OData services.
TypeScript
48
star
72

ui5-server

UI5 Tooling: Server
JavaScript
46
star
73

odata-library

Javascript library for processing OData protocol and developing OData clients.
JavaScript
43
star
74

cloud-sdk

The SAP Cloud SDK documentation and support repository.
HTML
41
star
75

openui5-worklist-app

OpenUI5 worklist template app
JavaScript
40
star
76

cf-nodejs-logging-support

Node.js Logging Support for Cloud Foundry provides the creation of structured log messages and the collection of request metrics
JavaScript
39
star
77

neonbee

A reactive dataflow engine, a data stream processing framework using Vert.x
Java
39
star
78

xml-tools

A Set of libraries for working with XML in JavaScript, mainly focused on Editor Tooling Scenarios.
JavaScript
38
star
79

cf-html5-apps-repo-cli-plugin

Cloud Foundry CLI plugin to work with SAP Cloud HTML5 Applications Repository
Go
38
star
80

ui5-migration

A tool to support the migration of UI5 projects by adapting code for new UI5 framework versions.
JavaScript
37
star
81

odbc-cpp-wrapper

An object-oriented C++-wrapper of the ODBC API
C++
37
star
82

ui5-project

UI5 Tooling: Project Handling
JavaScript
37
star
83

devops-cm-client

Simple command line interface to handle basic change management related actions via ODATA requests.
Java
36
star
84

theming-base-content

Color, font and metric definitions of SAP themes to be used by application UIs and UI frameworks.
Less
35
star
85

hybris-commerce-eclipse-plugin

A plugin for Eclipse IDE that makes developers more efficient when developing on SAP Hybris Commerce.
Java
34
star
86

emobility-smart-charging

Smart charging algorithms with REST API for electric vehicle fleets
Java
33
star
87

project-piper-action

CI/CD tooling for the SAP Ecosystem, integrated with GitHub Actions
JavaScript
31
star
88

backgrounds

Backgrounds is a macOS application for creating and setting custom desktop wallpapers on Apple Macintosh computers.
Objective-C
31
star
89

openui5-fhir

The openui5-fhir project connects the worlds of UI5 and FHIR®. Build beautiful and enterprise-ready web applications based on the FHIR® specification.
JavaScript
31
star
90

less-openui5

Build OpenUI5 themes with Less.js.
JavaScript
29
star
91

vscode-webview-rpc-lib

Provides a conventient way to communicate between VSCode extension and his Webviews. Use RPC calls to invoke functions on the webview and receive callbacks.
TypeScript
29
star
92

code-pal-for-abap-cloud

Code Pal for ABAP - Cloud Edition helps ABAP developers adhere to clean code standards
ABAP
28
star
93

openui5-website

The OpenUI5 website.
JavaScript
27
star
94

ewm-cloud-robotics

Source code, containers & Helm charts enabling users to leverage the core of Google Cloud Robotics to automate fulfilment warehouse orders & tasks commissioned by SAP EWM
Python
27
star
95

commerce-gradle-plugin

Gradle plugins for the full development lifecycle of a SAP Commerce project
Java
26
star
96

ui5-manifest

This project contains the flattend json schema for the ui5 manifest.
26
star
97

ui5-automation-framework

End-to-end test framework for UI5 applications. It uses UI5 structure and renders simplicity and ease of use for UI5 Automation.
JavaScript
25
star
98

inquirer-gui

Displays inquirer.js questions in an interactive HTML form. It displays each question type in its corresponding UI control; it supports answer validations and question visibility based on a given condition.
JavaScript
25
star
99

project-sailor

Easy access to APIs from SAP Digital Supply Chain for data scientists.
Python
24
star
100

cloud-primetime

PrimeTime is a free digital signage solution originating from SAP. It helps you to easily manage contents for screens of all types - supporting many different formats, custom templates as well as public and secured content.
Java
24
star