Python Kafka客户端触发错误,即使使用者正常工作
我正在使用confluent_kafka客户端包版本0.11.5和Python 3.6.6与Apache kafka交互。当使用者连接已轮询几分钟时出现错误。仍然能够正确使用和处理来自订阅主题的消息。似乎只有我在连接中使用的一些代理出现错误/失败,而不是所有代理。错误在本地运行时比在Kubernetes上运行更快,但往往会在一段时间后消失,然后返回 消费者选择:Python Kafka客户端触发错误,即使使用者正常工作,python,apache-kafka,confluent-platform,Python,Apache Kafka,Confluent Platform,我正在使用confluent_kafka客户端包版本0.11.5和Python 3.6.6与Apache kafka交互。当使用者连接已轮询几分钟时出现错误。仍然能够正确使用和处理来自订阅主题的消息。似乎只有我在连接中使用的一些代理出现错误/失败,而不是所有代理。错误在本地运行时比在Kubernetes上运行更快,但往往会在一段时间后消失,然后返回 消费者选择: { 'bootstrap.servers': kafka_brokers_sasl, 'sasl.mechanisms
{
'bootstrap.servers': kafka_brokers_sasl,
'sasl.mechanisms': 'PLAIN',
'security.protocol': 'SASL_SSL',
'sasl.username': 'token',
'sasl.password': api_key,
'log.connection.close' : False,
'client.id': 'kafka-python-console-sample-consumer',
'group.id': 'kafka-python-console-sample-consumer',
'default.topic.config': {
'auto.offset.reset': 'earliest'
}
}
错误消息:
%3|1539683094.048|FAIL|kafka-python-console-sample-consumer#consumer-1| [thrd:sasl_ssl://kafka02-prod01.messagehub.services.eu-de.bluemix.net]: sasl_ssl://kafka02-prod01.messagehub.services.eu-de.bluemix.net:9093/1: Failed to initializeSASL authentication: SASL Handshake not supported by broker (required by mechanism PLAIN)
%3|1539683094.048|ERROR|kafka-python-console-sample-consumer#consumer-1| [thrd:sasl_ssl://kafka02-prod01.messagehub.services.eu-de.bluemix.net]: sasl_ssl://kafka02-prod01.messagehub.services.eu-de.bluemix.net:9093/1: Failed to initialize SASL authentication: SASL Handshake not supported by broker (required by mechanism PLAIN)
我读过多篇不同的帖子,但找不到适合我的解决方案。如何删除该消息并确保我的代理连接没有问题?提示:
'sasl.mechanisms':'PLAIN'
可能无法与'security.protocol':'sasl\u SSL'
@cricket\u 007配合使用。@cricket\u 007我遵循了以下指南,解释了如何在IBM云上与Kafka一起使用它:。您打算如何使用它,以及更改哪一个?我不太确定Confluent Python库。如果你认为你遇到了一个错误,也许你可以在这里报告这个问题