Skip to content

Project for Scalable and Cloud Programming 2018/19 at UNIBO

License

Notifications You must be signed in to change notification settings

luca-Serena/ScalableCloudProgramming

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project for Scalable and Cloud Programming 2018/19 at UNIBO

This project is based on TwitterPopularTags and Spark-Docker-Example

Requirements

  1. Docker 1.10.0+ and docker-compose 1.6.0+
  2. SBT

Configure

You have to request API keys from twitter to use this application. Create a file named twitter.properties in sbt-application/docker-resources/ with the follwing content:

spark.debug=true
spark.twitter.consumerKey=XXXXXXXXXXXXXXXX
spark.twitter.consumerSecret=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
spark.twitter.accessToken=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
spark.twitter.accessTokenSecret=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Setup

  1. go to hadoop folder and build the docker image with the following command docker build -t spark .

Running

  1. Create docker image of the sbt-application by executing following command inside sbt-application directory:

sbt docker

  1. Run whole cluster using docker-compose (from the directory containing docker-compose.yml file):

docker-compose up

Docker-compose will run three images:

  • Spark master
  • Spark worker
  • sbt-application (Spark job)

About

Project for Scalable and Cloud Programming 2018/19 at UNIBO

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 93.4%
  • Dockerfile 5.5%
  • Shell 1.1%