-
Notifications
You must be signed in to change notification settings - Fork 232
SslConfig With RdKafka Producer/Consumer Raises Exceptions #616
Comments
Thanks for checking this in, @sghaskell. At a glance, this certainly looks like pykafka is doing something wrong, possibly as a result of a change in rdkafka's API during a version update. |
@sghaskell What version of librdkafka are you testing against? |
@emmett9001 librdkafka 0.9.1 |
@sghaskell this test code is very similar to the code you're using to reproduce this failure. The fact that this test passes on pykafka's Travis integration suggests that the current version of pykafka does work correctly with librdkafka 0.9.1. Is it possible that you're running in an environment that is somehow using an older version of librdkafka without realizing it? |
The tests mentioned above are actually skipped, so there is likely a real problem here. For local testing: https://kafka.apache.org/documentation/#security_ssl |
@sghaskell after a significant amount of local testing against current master, I am convinced that this issue is due to an incorrect version of librdkafka being used. I was initially able to replicate the problem locally, getting the exact same errors you showed above. I then removed all installations of librdkafka from my laptop and reinstalled version 0.9.1. After doing this, I am no longer able to replicate the errors. I'm also working in #682 on running ssl-related tests in travis so this type of issue gets caught automatically. Please reopen or comment on this ticket if you believe I've closed prematurely, but i think you're somehow using the wrong version of librdkafka. |
Thanks for all your help @emmett9001 ! I'll try this out in a fresh environment to validate and re-open if necessary. |
I'm getting an exception when attempting to use an rdkafka producer configured with SSL using release 2.5.0.
The code results in the following traceback
If I modify rdkafka/producer.py to print the conf at line 159 I can see that the config has the proper settings set by helpers.rdk_ssl_config.
If I try a similar config with the following consumer:
I get the following exception:
Here's what the config dictionary looks like:
'ssl' is clearly a valid value for security.protocol according to the librdkafka docs.
The text was updated successfully, but these errors were encountered: