Table of Contents

Search

  1. Preface
  2. Data Replication Overview
  3. Understanding Data Replication
  4. Sources - Preparation and Replication Considerations
  5. Targets - Preparation and Replication Considerations
  6. Starting the Server Manager
  7. Getting Started with the Data Replication Console
  8. Defining and Managing Server Manager Main Servers and Subservers
  9. Creating and Managing User Accounts
  10. Creating and Managing Connections
  11. Creating Replication Configurations
  12. Materializing Targets with InitialSync
  13. Scheduling and Running Replication Tasks
  14. Implementing Advanced Replication Topologies
  15. Monitoring Data Replication
  16. Managing Replication Configurations
  17. Handling Replication Environment Changes and Failures
  18. Troubleshooting
  19. Data Replication Files and Subdirectories
  20. Data Replication Runtime Parameters
  21. Command Line Parameters for Data Replication Components
  22. Updating Configurations in the Replication Configuration CLI
  23. DDL Statements for Manually Creating Recovery Tables
  24. Sample Scripts for Enabling or Disabling SQL Server Change Data Capture
  25. Glossary

Updating an Avro Schema for Kafka Targets After Running Data Replication

Updating an Avro Schema for Kafka Targets After Running Data Replication

If the columns in a mapped source table definition change and you want to reflect that change in Kafka target messages, you must manually update the column mappings in the Data Replication Console and then delete the Avro schema cache file.
Before performing these steps, stop all replication tasks that are running for the configuration.
If a column in a mapped source table is dropped, the Data Replication Console can automatically update the column mappings when you open the configuration. However, you still must delete the Avro schema cache file so that a new schema cache file can be re-created.
  1. Open the configuration and switch to Edit mode.
  2. Click the
    Map Columns
    tab.
    If source columns were dropped, verify that the Console automatically removed the mappings for those columns. Then skip to step 4.
  3. If new source columns were added, perform the following steps to map them:
    1. In the
      Source Table
      list, select the table that contains the new column.
      The corresponding target table appears in the
      Target Table
      list.
    2. Select the new source column row.
    3. Select the target column row.
    4. Click
      Map
      .
  4. Save the configuration.
  5. Navigate to the directory to which Data Replication writes the cache files that contain Avro schema information.
    The default directory is
    DataReplication_installation
    /output/
    configuration_name
    /overflow. Another directory might have been specified in the
    apply.avro.avro_schema_cache_directory
    parameter on the
    Runtime Settings
    tab >
    Advanced Settings
    view. Avro schema cache file names use the following format: key
    <key_number>
    _
    <source_owner>
    _
    <source_table_name>
    .che.
  6. Delete the Avro schema cache file that contains the source table name for which a column was added or removed.
  7. Restart all replication tasks.
    The next time the Applier runs, Data Replication will create a new file that contains updated information about the Avro schema for the source table.

0 COMMENTS

We’d like to hear from you!