confluent-kafka
makes use of the native librdkafka
, so installation is a bit tedious.
Let's take a note:
First, put in the necessary packages:
apt-get install python-pip
apt-get install python2.7-dev
apt-get install software-properties-common
Next, add the ** confluent ** repository:
wget -qO - http://packages.confluent.io/deb/3.0/archive.key | sudo apt-key add -
add-apt-repository "deb [arch=amd64] http://packages.confluent.io/deb/3.0 stable main"
Finally, install librdkafka
and confluent-kafka
:
apt-get update
apt-get install librdkafka-dev
pip install confluent-kafka
that's all.
Recommended Posts