In Pega, the Kafka libraries are bundled with the Pega installation and extracted to a temporary directory when the Kafka service is started. However, you can specify the lib path for Kafka by setting the following system properties in your Pega application server’s startup script:
kafka.logs.dir: The path to the Kafka logs directory
kafka.logs.dir.permissions: The permissions for the Kafka logs directory
kafka.logs.dir.owner: The owner of the Kafka logs directory
kafka.logs.dir.group: The group of the Kafka logs directory
kafka.lib.dir: The path to the Kafka libraries directory
kafka.lib.dir.permissions: The permissions for the Kafka libraries directory
kafka.lib.dir.owner: The owner of the Kafka libraries directory
kafka.lib.dir.group: The group of the Kafka libraries directory
By setting these system properties, you can specify the location of the Kafka libraries directory, and ensure that it is not extracted to the Pega temporary directory.
Here’s an example of how to set the system properties in a Tomcat server startup script:
Replace the values for kafka.logs.dir and kafka.lib.dir with the paths to your desired directories.
Note that this method may require additional configuration depending on your specific environment and deployment requirements. You may also need to update the Kafka configuration files to point to the new lib path.