Confluent Python Client - undefined symbol: rd_kafka_msg_partitioner_consistent

658 views
Skip to first unread message

Rendy Bambang Junior

unread,
Oct 19, 2016, 2:31:21 AM10/19/16
to Confluent Platform
hi all, in my machine I tried to use conlfuent kafka python like this

first, I installed confluent kafka python
`sudo pip install confluent-kafka`

then I tried to use it. somehow I always get this error message
`>>> from confluent_kafka import Producer
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/confluent_kafka/__init__.py", line 2, in <module>
    from .cimpl import *
ImportError: /usr/local/lib/python2.7/dist-packages/confluent_kafka/cimpl.so: undefined symbol: rd_kafka_msg_partitioner_consistent`

I guess it is because of librdkafka is not there, then I do git clone and make & install. but the error still appears

I also tried to git clone confluent-kafka-python instead of installing from apt-get, but it is still error

how to solve this problem?

Magnus Edenhill

unread,
Oct 19, 2016, 3:18:41 PM10/19/16
to Confluent Platform
Hi,

as a reference to future readers this was handled in the following issue:

The root problem was caused by having an old librdkafka version installed,
replacing the old version with librdkafka >=0.9.1 solved the issue.

/Magnus
Reply all
Reply to author
Forward
0 new messages