How to upgrade the version of Kafka library used by Kafka Engine in ClickHouse?
And, how to know actual version in use?
If you're using the shared build, you might be able to grab the needed DSO files of librdkafka and replace the old one. Though there is a chance that the ABI is incompatible as librdkafka hasn't even a stable release yet. Otherwise, just rebuild ClickHouse with the librdkafka you need.
As for looking up the version of current librdkafka, here is one way,
select * from system.build_options
get the VERSION_GITHASH and do
git ls-tree <VERSION_GITHASH> contrib/librdkafka