10.5.4 Apache Kafka
- About Apache Kafka Connections
- Before You Begin
- Create and Validate an Apache Kafka Connection
- Use an Apache Kafka Connection in Replicat
Parent topic: Streaming and Messaging
10.5.4.1 About Apache Kafka Connections
An Apache Kafka connection stores the information that Oracle GoldenGate for Distributed Applications and Analytics uses to connect to an Apache Kafka cluster.
You can use the connection with Extract to capture transactional changes from Apache Kafka as a source and with Replicat to deliver transactional changes to Apache Kafka as a target. After you create and validate the connection, you can reuse it across multiple Oracle GoldenGate for Distributed Applications and Analytics processes.
The connection stores the Kafka bootstrap server information, authentication settings, security configuration, and optional runtime settings independently of the process configuration.
Parent topic: Apache Kafka
10.5.4.2 Before You Begin
Before creating an Apache Kafka connection, ensure that you have the following:
- An Oracle GoldenGate for Distributed Applications and Analytics deployment.
- Network connectivity between the Oracle GoldenGate for Distributed Applications and Analytics deployment and the Apache Kafka cluster.
- One or more Kafka bootstrap servers.
- Authentication credentials and security artifacts required by the selected security protocol and SASL mechanism.
- The required Apache Kafka client libraries. Download the supported client libraries by using the Dependency Downloader for Kafka.
- Common runtime settings, such as the runtime classpath, configured to reference the downloaded client libraries.
- Optional
producer.propertiesandconsumer.propertiesfiles if additional Kafka client configuration is required. - Proxy information if the Oracle GoldenGate for Distributed Applications and Analytics deployment accesses the Apache Kafka cluster through an HTTP proxy.
Parent topic: Apache Kafka
10.5.4.3 Create and Validate an Apache Kafka Connection
Use the Add Connection page to create a Kafka connection.
Procedure
- In the navigation menu, select DB Connections.
- Click Add Connection.
- In Connection Alias, enter a unique name for the connection.
- From Technology Type, select Apache Kafka.
- In the Technology Settings section, provide the Apache Kafka connection
information.
Configure the following technology settings:
Bootstrap Servers – Specifies one or more Kafka bootstrap servers used to establish the initial connection to the Kafka cluster. This field is required.
- Configure the Security Settings section.
Configure the following security settings.
PLAINTEXTConfigure Security Protocol as PLAINTEXT when the Kafka cluster does not require encryption or SASL authentication.
SASL AuthenticationConfigure the following settings when Security Protocol is SASL_PLAINTEXT or SASL_SSL:
- SASL Mechanism – Specifies the SASL authentication mechanism. Supported values are PLAIN, SCRAM-SHA-256, SCRAM-SHA-512, and OAUTHBEARER.
- Username – Specifies the user name when PLAIN, SCRAM-SHA-256, or SCRAM-SHA-512 authentication is used.
- Password – Specifies the password associated with the user name. This field is treated as sensitive information.
- Client ID – Specifies the OAuth client identifier. Required when OAUTHBEARER is selected.
- Client Secret – Specifies the OAuth client secret. Required when OAUTHBEARER is selected. This field is treated as sensitive information.
- Scope – Specifies the OAuth scope requested during token acquisition.
- Token Endpoint – Specifies the OAuth token endpoint URL used to obtain access tokens.
Configure the following settings when Security Protocol is SSL or SASL_SSL:
- Truststore – Upload the Base64-encoded truststore used to validate the Kafka broker certificates. This property is deprecated and will be replaced by trustStoreSecretId.
- Truststore Password – Specifies the password associated with the truststore. This property is deprecated and will be replaced by trustStorePasswordSecretId.
- Keystore – Upload the Base64-encoded keystore containing the client certificate and private key. This property is deprecated and will be replaced by keyStoreSecretId.
- Keystore Password – Specifies the password associated with the keystore. This property is deprecated and will be replaced by keyStorePasswordSecretId.
- SSL Key Password – Specifies the password protecting the private key stored in the keystore when it differs from the keystore password. This property is deprecated and will be replaced by sslKeyPasswordSecretId.
Note:
Configure only the authentication and TLS properties required by the selected security protocol and SASL mechanism. - Configure Common Settings, if additional runtime configuration is required.
Configure the following common settings:
- Producer Properties – Upload an optional
producer.propertiesfile containing additional Kafka producer configuration. - Consumer Properties – Upload an optional
consumer.propertiesfile containing additional Kafka consumer configuration. - Classpath – Specifies the runtime classpath used to load the required Apache Kafka client libraries.
Note:
- Download the supported Apache Kafka client libraries by using the Dependency Downloader for Kafka.
- Configure the runtime classpath to reference the downloaded client libraries before starting the Extract or Replicat process.
- If your deployment uses custom Kafka serializers, deserializers, or message converters, configure them as described in the Kafka Handler documentation.
- Producer Properties – Upload an optional
- (Optional) Configure Proxy Settings if the Oracle GoldenGate for Distributed
Applications and Analytics deployment accesses the Apache Kafka cluster through an
HTTP proxy.
Configure the following proxy settings:
- Proxy URL – Specifies the URL or host name of the proxy server used to access the Apache Kafka cluster.
- Proxy Port – Specifies the port number of the proxy server.
- Proxy Username – Specifies the user name for proxy authentication, if required.
- Proxy Password – Specifies the password for proxy authentication. This field is treated as sensitive information.
- Truststore – Specifies the Java truststore file that contains the certificate authority (CA) certificates used to validate the proxy server certificate, when required.
- Truststore Password – Specifies the password associated with the truststore.
- Keystore – Specifies the Java keystore file containing the client certificate and private key used for client authentication, when required.
- Keystore Password – Specifies the password associated with the keystore.
- SSL Key Password – Specifies the password protecting the private key stored in the keystore when it differs from the keystore password.
Note:
Configure the proxy and SSL settings only if the Oracle GoldenGate for Distributed Applications and Analytics deployment accesses the Apache Kafka cluster through a proxy that requires authentication or TLS. If the deployment has direct network connectivity to the Apache Kafka cluster, leave the Proxy Settings blank. - Click Submit.
- On the DB Connections page, click DBLOGIN to validate the connection.
Note:
A successful DBLOGIN validates only the saved connection information. It does not validate the Extract or Replicat configuration or Kafka Handler configuration. After successful validation, the connection is available for selection during Extract or Replicat creation.
Parent topic: Apache Kafka
10.5.4.4 Use an Apache Kafka Connection in Replicat
Use the Connection with Extract
- Create or edit an Extract.
- Select Apache Kafka as the source technology.
- Select the validated Apache Kafka connection.
- Complete the remaining Extract configuration.
- Create and start the Extract.
Use the Connection with Replicat
- Create or edit a Replicat.
- Select Apache Kafka as the target technology.
- Select the validated Apache Kafka connection.
- Complete the remaining Replicat configuration.
- Create and start the Replicat.
Related Topics
Parent topic: Apache Kafka