Kafka Connections
Incubation
Creating Kafka Connection |
Details |
Short Description
Kafka connection allows you to connect to a Kafka cluster. The connection is required by components which consume or produce records to Kafka (KafkaReader, KafkaWriter and KafkaCommit).
Creating Kafka Connection
To create a Kafka connection, right click Connections in Outline and choose → .
In Edit Kafka connection dialog, fill in Connection name and Bootstrap servers. These two properties are sufficient for a plain unauthenticated connection.
To set up connection authentication and/or encryption, you need to use configuration on the following SSL/TLS and/or SASL tabs.
Save the connection and it can be used in the graph components.
Basic
Connection properties on the Basic tab are mandatory.
Figure 32.12. Kafka connection dialog - Basic tab
- Connection name
A name for this connection.
Note that when creating a new connection, the entered name will be used to generate an ID of the connection. Whereas the connection name is just an informational label, the connection ID is used to reference this connection from graph components. Once the connection is created, the ID cannot be changing the connection name (to avoid accidental breaking of references). To change the ID of and existing connection, use the Properties view.
- Bootstrap servers
A list of host/port pairs to use for establishing the initial connection to the Kafka cluster, e.g.
kafka-br1.example.com:9093,kafka-br2.example.com:9093
. Corresponds to Kafkabootstrap.servers
property.
SSL/TLS
Properties on the SSL/TLS tab allow you to use SSL for traffic enpcyption as well as for authentication.
Figure 32.13. Kafka connection dialog - SSL/TLS tab
- Use SSL/TLS
Enables the use of SSL/TLS for encryption and optionally also for client authentication.
- Trust store
The location of the trust store file.
- Trust store password
The password for the trust store file. If a password is not set access to the truststore is still available, but integrity checking is disabled.
- Key store
The location of the key store file. This is optional and can be used for two-way authentication for client.
- Key store password
The store password for the key store file. Optional.
- Private key password
The password of the private key in the key store file. Optional.
- Disable hostname validation
Disables server host name validation. Corresponds to setting
ssl.endpoint.identification.algorithm
to an empty string.
SASL
Properties on the SASL tab allow you to use SASL authentication mechanisms. Kafka uses the Java Authentication and Authorization Service (JAAS) for SASL configuration.
Figure 32.14. Kafka connection dialog - SASL tab
- SASL mechanism
SASL mechanism used for the connection. Can be used by itself or in combination with SSL/TLS.
An empty value means no SASL authentication. There are pre-filled values for GSSAPI (Kerberos) and PLAIN authentication, but you can enter a custom value. Corresponds to Kafka
sasl.mechanism
property.- JAAS config
JAAS login context parameters for SASL connection in the format used by JAAS configuration files. The format is described in https://docs.oracle.com/javase/8/docs/technotes/guides/security/jgss/tutorials/LoginConfigFile.html.
Consumer
On the Consumer tab, you can specify consumer properties which will be shared by all KafkaReader components using this connection.
Any property set by configuration on previous tabs can be also overridden here.
Additional consumer properties can then be set up for individual KafkaReader components in their Consumer configuration attribute.
Figure 32.15. Kafka connection dialog - Consumer tab
Producer
On the Producer tab, you can specify producer properties which will be shared by all KafkaWriter components using this connection.
Any property set by configuration on previous tabs can be also overridden here.
Additional producer properties can then be set up in individual KafkaWriter components in their Producer configuration attribute.
Figure 32.16. Kafka connection dialog - Producer tab
Details
Note that some authentication settings are very environment-dependent. When setting up a connection to be used on Server, the absolute paths (e.g. paths to key stores or trust stores outside of a sandbox, paths to keytab files) are absolute paths on the Server. Also, the Kerberos authentication depends on some system client configuration, which has to be present on the Server as well. |
Compatibility
Version | Compatibility Notice |
---|---|
5.9.0 |
Kafka connections are available since 5.9.0 in incubation mode. |
See also:
KafkaReader |
KafkaWriter |
KafkaCommit |