Specifying a custom classpath for KCOPs

You can specify a custom classpath for Kafka custom operation processors (KCOPs) if you need to add an external library that is not in the CDC Replication classpath or if you intend to use a different version of a library that CDC Replication also depends on.

About this task

By default, all KCOPs share a classpath with the CDC Replication Engine for Kafka.

Specifying a custom classpath for KCOPs can change the way the integrated KCOPs behave. Because of this, an integrated KCOP running with a custom classpath is considered to be a user-modified KCOP.

Procedure

  1. Create the user-classloader.cp file in the CDC_Kafka_instance_directory/conf directory.
  2. Open the file and provide a custom classpath. The format should match your platform. For example, on Linux you need to provide a colon-separated list:
    library1.jar:library2.jar:...:libraryX.jar
  3. Restart your CDC Replication Engine for Kafka instance.