Sometimes it is necessary to store additional jar files within the connector plugin directories in order to extend their function.
There is kafka_connect_copy_files for distributing such custom files. Unfortunately, the corresponding task “Copy Kafka Connect Files” is executed before the installation of the actual Connect plugins, so that the files are overwritten again.
It would therefore make more sense to run the “Copy Kafka Connect Files” task after installing the plugins (task “Install Connect Plugins”).
Example in Inventory File:
kafka_connect_copy_files:
# ibm client jar for mq sink connector
- source_path: "{{ inventory_dir }}/connect_plugins/com.ibm.mq.allclient.jar"
destination_path: /usr/share/java/confluentinc-kafka-connect-ibmmq/
- source_path: "{{ inventory_dir }}/connect_plugins/com.ibm.mq.allclient.jar"
destination_path: /usr/share/java/confluentinc-kafka-connect-ibmmq-sink/
Related yml file:
~/.ansible/collections/ansible_collections/confluent/platform/roles/kafka_connect/tasks/main.yml
Sometimes it is necessary to store additional jar files within the connector plugin directories in order to extend their function.
There is kafka_connect_copy_files for distributing such custom files. Unfortunately, the corresponding task “Copy Kafka Connect Files” is executed before the installation of the actual Connect plugins, so that the files are overwritten again.
It would therefore make more sense to run the “Copy Kafka Connect Files” task after installing the plugins (task “Install Connect Plugins”).
Example in Inventory File:
Related yml file: ~/.ansible/collections/ansible_collections/confluent/platform/roles/kafka_connect/tasks/main.yml
Environment: