santi81 / kafka-connect-hana

Kafka Source/Sink Connector for HANA
Apache License 2.0
1 stars 8 forks source link

Kafka Connector for SAP HANA

kafka-connect-hana is a Kafka Connector for copying data to and from SAP HANA.

Table of contents

Install

To install the connector from source, use the following command.

mvn clean install -DskipTests

Include the SAP HANA Jdbc Jar

QuickStart

For getting started with this connector, the following steps need to be completed.

name=test-sink
connector.class=com.sap.kafka.connect.sink.hana.HANASinkConnector
tasks.max=1
topics=test_topic
connection.url=jdbc:sap://<url>/
connection.user=<username>
connection.password=<password>
auto.create=true
schema.registry.url=<schema registry url>
test_topic.table.name="SYSTEM"."DUMMY_TABLE"
./bin/connect-standalone ./etc/schema-registry/connect-avro-standalone.properties ./etc/kafka/kafka-connect-hana-sink.properties
name=kafka-connect-source
connector.class=com.sap.kafka.connect.source.hana.HANASourceConnector
tasks.max=1
topics=kafka_source_1,kafka_source_2
connection.url=jdbc:sap://<url>/
connection.user=<username>
connection.password=<password>
kafka_source_1.table.name="SYSTEM"."com.sap.test::hello"
./bin/connect-standalone ./etc/schema-registry/connect-avro-standalone.properties ./etc/kafka/kafka-connect-hana-source.properties

Distributed Mode

In a production environment, it is suggested to run the Kafka Connector on distributed mode

Configuration

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

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

Default Configurations

Examples

The unit tests provide examples on every possible mode in which the connector can be configured.