Using TestContainers to create an ad-hoc Kafka instance to testing PySpark operations producing and consuming to/from Kafka.
This gives me an error on the last Spark->Kafka prodAucer step:
WARN NetworkClient: [Producer clientId=producer-1] Connection to node 1 (localhost/127.0.0.1:57617) could not be established. Broker may not be available.
I'll update the repo once this is resolved.
- Init the virtual environment
- Install requirements
$ pip install -r- Run
$ python test1.py