[英]How to install librdkafka with Kerberos?
So I am trying to write a script where the data comes from a database and then gets published into a kafka topic. 因此,我试图编写一个脚本,其中数据来自数据库,然后发布到kafka主题中。 I am using the confluent-kafka
due to its speed. 由于速度快,我正在使用confluent-kafka
。
The kafka has kerberos
configured thus, I have to enable it in my producer. kafka已配置了kerberos
,我必须在生产者中启用它。 I have the keytab and the required config parameters. 我有keytab和必需的配置参数。
As far as I understand I need to manually install librdkafka
+ it's dependencies and then install the confluent-kafka
from source. 据我了解,我需要手动安装librdkafka
+它的依赖项,然后从源代码安装confluent-kafka
。
So till now I have installed the following dependencies: 因此,到目前为止,我已经安装了以下依赖项:
1. yum install cyrus-sasl.
2. yum install cyrus-sasl-devel
3. yum install cyrus-sasl-lib
4. yum install cyrus-sasl-gssapi
5. yum install openssl-devel
6. yum install openssl
When I try to execute the following command yum install librdkafka
it gives me as error: 当我尝试执行以下命令yum install librdkafka
时,出现错误:
No package librdkafka. Error: Nothing to do
I was hoping this would install librdkafka
and then I could execute the following command pip install --no-binary :all: confluent-kafka
and get the confluent-kafka
working with kerberos
. 我希望这将安装librdkafka
,然后我可以执行以下命令pip install --no-binary :all: confluent-kafka
并使confluent-kafka
与kerberos
一起使用。
System Info: 系统信息:
OS: rhel-7-server 操作系统:rhel-7-server
PS If there are any additional info required, let me know I will update the post accordingly. 附注:如果需要任何其他信息,请告诉我,我将相应地更新该帖子。
The latest version of librdkafka is not generally available in RHEL, you should use the Confluent RPM repository to get the most up to date version. 最新版本的librdkafka在RHEL中通常不可用,您应该使用Confluent RPM存储库以获取最新版本。
yum install librdkafka-devel
安装librdkafka devel软件包: yum install librdkafka-devel
python setup.py install
or pip install .
使用python setup.py install
或pip install .
构建并安装confluent-kafka-python客户端pip install .
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.