Kafka symbol lookup error, undefined symbol: rd_kafka_message_leader_epoch

Sometimes when using a program linked with librdkafka, you can encounter the ‘symbol lookup error.

Most of the time it’s because your program have been linked to an old version of librdkafka in your system (like outdated RedHat librdkafka yum package VS the latest build from librdkafka’s git)

Solutions:

-Check your LD_LIBRARY_PATH, be sure to find the directories containing latest librdkafka .so file is listed first

-Check what’s installed on your system
-In some case you will have to rebuild your project, having a proper LD_LIBRARY_PATH configured before

#KAFKA #C #librdkafka