Skip to content

andrejpk/python-tescontainers-kafka-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example PySpark/Kafka Integrartion test using TestContainers

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.

Running

  1. Init the virtual environment
  2. Install requirements
$ pip install -r
  1. Run
$ python test1.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages