Spark app that executes a visual simulation of a spark source ~> flow ~> sink pipeline.
- brew tap homebrew/services
- brew install scala
- brew install sbt
- brew install cassandra
- brew install zookeeper
- brew services start cassandra, zookeeper, kafka
- brew services stop cassandra, kafka, zookeeper
- sbt clean test
- sbt clean compile run
Spark depends on log4j. Providing a log4j.properties file works great during testing and lauching of a spark app within an IDE. Spark, however, ignores a jar-based log4j.properties file whether a job is run by spark-submit.sh or SparkLauncher. You have to place a log4j.properties file in the $SPARK_HOME/conf directory. A log4j.properties.template file is provided in the same directory.
- ./target/test.log
- ./target/main.log
- kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic license
- kafka-topics.sh --zookeeper localhost:2181 --list