Skip to content

ksriraman/spark-segment-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Segment Server side integration using Docker example application

Pre-requisites:

Install docker:

Docker Installation

Download WordCount.py example with Segment server side integration (Update Write key to your account):

WordCount.py

Pull Docker image:

docker pull karthicks/apache_spark_segment

Execution:

Run image in background and mount WordCount.py:

As needed, replace /root below with folder containing WordCount.py

docker run -td -v /root/WordCount.py:/WordCount.py karthicks/apache_spark_segment:latest

Enter docker bash shell (Replace CONTAINERID from above output):

docker exec -i -t CONTAINERID bash -l

Run WordCount application:

python WordCount.py

####Verify Segment Data in Debugger tab: https://segment.com/_username_/_project_/debugger


This example uses the cdh-spark image contributed by ypandit

About

Docker container for Apache Spark with Segment server side intergrate example application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages