I need to connect to kafka instance which has multiple brokers with SSL. I am using kafka-python to consume and process data.
我看到,他们利用kafka-python与SSL的单一经纪人联系。
I need to connect to kafka instance which has multiple brokers with SSL. I am using kafka-python to consume and process data.
我看到,他们利用kafka-python与SSL的单一经纪人联系。
应设立特别后勤中心,使客户能够与任何经纪人进行认证。 我建议你研究这一理论,以便更好地了解SSL基本内容:https://docs.confluent.io/ 当前/kafka/encodeion.html#kafka-sl-en加密。
老问题,但由于我面临同样的问题(现有答案大多面向 Java,后者有不同的结构,使用主要储存和信托储存),我正在提出一个工作解决办法。 请注意,我正在使用“Conluent Kafka”,但解决办法应当与其他Python kafka图书馆的微小改动一样。
卡夫卡经纪人只是 com子分离的单一体。 如果每个经纪人都有不同的证书,那么在一份单册中仅复制所有服务器证书。
A consumer which consumes from 3 brokers with separate certificates should look as follows:
kafka_brokers = broker_1,broker_2,broker_3
ssl_ca_location = all_server_certs.pem
consumer = Consumer({
bootstrap.servers : kafka_brokers,
security.protocol : SSL ,
enable.ssl.certificate.verification : true ,
ssl.certificate.location : client-cert.pem ,
ssl.ca.location : ssl_ca_location,
ssl.key.location : client-key.pem ,
group.id : my_group ,
auto.offset.reset : earliest
})
I m using Selenium Webdriver and python to automatically schedule an appointment. Webdriver options: options = Options() options.binary_location = /opt/headless-chromium options.add_argument( --...
I m using Python 3.1, if that helps. Anyways, I m trying to get the contents of this webpage. I Googled for a little bit and tried different things, but they didn t work. I m guessing that this ...
In Python 3.x, a string consists of items of Unicode ordinal. (See the quotation from the language reference below.) What is the internal representation of Unicode string? Is it UTF-16? The items ...
In Python 3.1, there is a new builtin function I don t know in the builtins module: __build_class__(...) __build_class__(func, name, *bases, metaclass=None, **kwds) -> class Internal ...
I have have read several entries regarding dropping several functional functions from future python, including map and reduce. What is the official policy regarding functional extensions? is lambda ...
I am working for a company that uses the Python programming language version 3.1 as a causal work now. And I ve encountered this problem: how to print out some encoded Asian characters(Chinese, ...
Can anyone suggest a good Python 3 Library for sending / receiving reatime MIDI?
I built a rather simple application in Python 3.1 using PyQt4. Being done, I want the application to be distributed to computers without either of those installed. I almost exclusively care about ...