Table of Contents

Search

  1. Preface
  2. PowerExchange CDC Publisher Overview
  3. Installing and Upgrading PowerExchange CDC Publisher
  4. PowerExchange CDC Publisher Key Concepts
  5. PowerExchange Change Capture Environment
  6. Target Messaging Systems
  7. Configuring PowerExchange CDC Publisher
  8. Streaming Change Data
  9. Monitoring PowerExchange CDC Publisher
  10. Administering PowerExchange CDC Publisher
  11. Appendix A: Command Reference for the Command-Line Utilities
  12. Appendix B: Avro Schema Formats
  13. Appendix C: Custom Pattern Formats
  14. Appendix D: Message Reference

User Guide

User Guide

Preparing the Apache Kafka Environment for Use with CDC Publisher

Preparing the Apache Kafka Environment for Use with CDC Publisher

You must perform a few tasks on the PowerExchange CDC Publisher system and on the Kafka target system to prepare for using Apache Kafka with PowerExchange CDC Publisher.
  1. Download the Kafka client libraries to the PowerExchange CDC Publisher system.
    The version of the Kafka client libraries must match the version of the Kafka target. The Kafka client libraries do not need to be copied under the PowerExchange CDC Publisher root installation directory.
  2. On the PowerExchange CDC Publisher system, define the KAFKA_CLIENT_LIBS environment variable.
    This environment variable points to the
    libs
    subdirectory of the local Kafka client installation. The libs directory contains Kafka .jar files.
  3. Ensure that the CDC Publisher can access the Kafka producer.properties file. The file can be on the local CDC Publisher host or a shared device.
    This file contains connectivity information that CDC Publisher Connector will use to communicate with the Kafka target.
    You can optionally rename the file name. When you configure the PowerExchange CDC Publisher configuration files later, you will set the Connector.kafkaProducerPropertiesFile property to point to this producer.properties file.
  4. On the Kafka target system, if Kafka is not configured to automatically generate Kafka topics, create the Kafka topic or topics to which the PowerExchange CDC Publisher will publish the messages that contain change data. Ensure that the topics are created before you run the PowerExchange CDC Publisher process.
    You can create a single topic for all source tables or create a separate topic for each source table. When you configure the PowerExchange CDC Publisher configuration files later, set the Connector.kafkaTopic property to specify either the name of single topic to which all messages will be published or the option USE_TABLE_NAME to publish messages to a separate topic for each source table.
    By default, the auto.create.topics.enable parameter in the Kafka server.properties file is set to true. With this setting, the Kafka broker automatically generates the topic or topics if they do not exist the first time messages are sent to the topics. You need to manually create the topics only if the auto.create.topics.enable parameter has been set to false.
For more information about configuring a Apache Kafka system, see the Apache Kafka documentation.

0 COMMENTS

We’d like to hear from you!