-
Notifications
You must be signed in to change notification settings - Fork 922
Closed
Description
Description
Getting the above error when importing the from confluent_kafka.admin import (AdminClient, NewTopic)
How to reproduce
- Spin up a Amazon Linux EC2 environment
- Check Python3 Version (3.7.6)
- create a directory /usr/local/source/sample
- sudo pip3 install -U confluent-kafka -t python
WARNING: Running pip install with root privileges is generally not a good idea. Trypip3 install --user
instead.
Collecting confluent-kafka
Using cached confluent_kafka-2.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB)
Installing collected packages: confluent-kafka
Successfully installed confluent-kafka-2.0.2 - zip the python file as confluent-kafka.zip
- download the zip file to windows environment
- Create a AWS Lambda Layer using the zip file
- Attach the Lambda layer to the Lambda function (Python 3.9)
- Test the Lambda function
Checklist
Please provide the following information:
- confluent-kafka-python and librdkafka version (
2.02
): - Apache Kafka broker version: AWS MSK 2.8.1
- Client configuration:
{...}
- Operating system: Lambda Function
- Provide client logs (with
'debug': '..'
as necessary) - Provide broker log excerpts
- Critical issue
sterliakov
Metadata
Metadata
Assignees
Labels
No labels