Origin: https://github.com/lisy09/spark-dev-box
This is a project to provide a practical dev suite for scala spark.
spark-app/
: module directory to write the spark applicationvendor/hadoop-docker
: vendor hadoop to provider
build all docker images in:
- kafka-docker
- vendor/hadoop-docker
- vendor/apache-livy-docker and the spark application jar in :
- spark-app/build_results/spark-app.jar
You can do this in one command:
make all
make deploy
Need curl
installed
make submit
to stop the spark streaming app
make unsubmit
make send-batch
make curl-wordcount
or check the API GET /v1/wordcount at http://localhost:8001/docs
make undeploy