- install Vagrant and Virtualbox
- install Ansible
- get an AWS Account. The AWS resources used in this example exceed the free tier, regular AWS fees apply. You have been warned!
- Create an EC2 key pair called dcos-intro
- A Twitter access key
Export
- DCOS_INTRO_AWS_REGION, e.g. with "eu-central-1"
- DCOS_INTRO_AWS_ACCESS_KEY, your AWS access key
- DCOS_INTRO_AWS_SECRET_KEY, your AWS secret key
- SSH into Vagrant box (vagrant ssh)
- call /vagrant/provisioning/install-smack-frameworks.sh
- Wait in Marathon (http://<master_load_balancer>/marathon) until all apps are healthy
- call /vagrant/provisioning/setup-kafka-broker-and-topic.sh
- SSH into the master node on AWS
- Start cqlsh with
docker run -ti cassandra:2.2.5 cqlsh node-0.cassandra.mesos
- Execute the two lines from /vagrant/provisioning/cassandra.cql
- edit /vagrant/provisioning/ingestion.json to add your twitter credentials
- Call /vagrant/provisioning/deploy-ingestion.sh
- Call /vagrant/provisioning/deploy-digestion.sh
- cd into "example"
- call
sbt assembly
- Fat Jar will contain both Spark job and ingestion job. You would not have this normally, this is a simplification for the sake of the example
- call
sbt docker