#Installation:
- Download Spark (1.6)
- Compile Spark by typing
mvn clean package
- Open terminal with this dir and compile project
./sbt clean compile package
- Run Spark examples in the terminal:
/opt/spark/bin/spark-submit --class CsvParser --master local[4] /Users/sebastian/workshop/target/scala-2.11/espeo-workshops_2.11-1.0.jar
where CsvParser
is your class name.
To run generator just type:
scala HttpLogGenerator.scala /tmp/apache.txt 100