$ pip install confluent-kafka
https://github.com/confluentinc/confluent-kafka-python
The yum repositories provide packages for RHEL, CentOS, and Fedora-based distributions.
First install Confluent’s public key, which is used to sign packages in the yum repository.
$ sudo rpm --import http://packages.confluent.io/rpm/3.2/archive.key
Add the repository to your/etc/yum.repos.d/
directory in a file namedconfluent.repo
.
If you are using RHEL/Centos/Oracle 6
[Confluent.dist]
name=Confluent repository (dist)
baseurl=http://packages.confluent.io/rpm/3.2/6
gpgcheck=1
gpgkey=http://packages.confluent.io/rpm/3.2/archive.key
enabled=1
[Confluent]
name=Confluent repository
baseurl=http://packages.confluent.io/rpm/3.2
gpgcheck=1
gpgkey=http://packages.confluent.io/rpm/3.2/archive.key
enabled=1
If you are using RHEL/Centos/Oracle 7
[Confluent.dist]
name=Confluent repository (dist)
baseurl=http://packages.confluent.io/rpm/3.2/7
gpgcheck=1
gpgkey=http://packages.confluent.io/rpm/3.2/archive.key
enabled=1
[Confluent]
name=Confluent repository
baseurl=http://packages.confluent.io/rpm/3.2
gpgcheck=1
gpgkey=http://packages.confluent.io/rpm/3.2/archive.key
enabled=1
It is recommended toclear the yum cachesbefore proceeding:
$ sudo yum clean all
The repository is now ready for use.
You can install Confluent Enterprise with:
$ sudo yum install confluent-platform-2.11
Or you can install Confluent Open Source with:
$ sudo yum install confluent-platform-oss-2.11
https://github.com/edenhill/librdkafka
./configure
make
sudo make install