Example - Integration with Kafka - 5.2 English - 57404

AOCL User Guide (57404)

Document ID
57404
Release Date
2025-12-29
Version
5.2 English

Apache Kafka is an open-source distributed event streaming platform used for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications. If Kafka has been configured to use any of the compression methods supported by AOCL-Compression, it can be re-directed to load AOCL-Compression library at runtime as follows:

# Edit config file /opt/kafka/config/server.properties and set desired compression method among: lz4, snappy, zstd, zlib
# Start Kafka and Zookeeper while loading AOCL-Compression library
LD_PRELOAD="path/to/aocl_compression.so" kafka-server-start.sh config/server.properties &
LD_PRELOAD="path/to/aocl_compression.so" zookeeper-server-start.sh config/zookeeper.properties &