LoginSignup
1
0

More than 5 years have passed since last update.

Install confluent-kafka for Python on Ubuntu

Posted at

confluent-kafka はネイティブ librdkafka を利用しているため、インストールはやや面倒くさいです。

いちようメモをとっておきましょう:

まずは必要なパーケージを入れておく:

apt-get install python-pip
apt-get install python2.7-dev
apt-get install software-properties-common

次は confluent 社のリポジトリを追加する:

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"

最後は librdkafkaconfluent-kafka をインストールする:

apt-get update
apt-get install librdkafka-dev
pip install confluent-kafka

以上です。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0