Check if Docker Compose is installed:
docker-compose -vIf not installed, follow the Docker Getting Started Docs.
To build the image:
docker-compose buildCheck that the image has been successfully pulled:
docker image listExample output:
REPOSITORY TAG IMAGE ID CREATED SIZE
giobbu/kafka-spark-app latest <containerId> About an hour ago 10.6GBTo start the container:
docker-compose run --rm app--rm: flag to remove the container after it stops.
Logged as root user in usr/bin start kafka server
start_services.shCheck kafka.log and zookeeper.log are in home/guest
anaconda3 kafka kafka.log notebooks spark zookeeper.logIn home/guest
pyspark --versionOutput
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 3.5.6
/_/
Using Scala version 2.12.18, OpenJDK 64-Bit Server VM, 11.0.25Switch to guest user
su guestAnd start jupyter notebook
notebookConnect to http://127.0.0.1:8889/tree?token=<token>
- Services
- Volume