Download WordCount.py example with Segment server side integration (Update Write key to your account):
docker pull karthicks/apache_spark_segment
As needed, replace /root below with folder containing WordCount.py
docker run -td -v /root/WordCount.py:/WordCount.py karthicks/apache_spark_segment:latest
docker exec -i -t CONTAINERID bash -l
python WordCount.py
####Verify Segment Data in Debugger tab: https://segment.com/_username_/_project_/debugger