NOTE: This project uses andahme/dccu to manage docker-compose profiles.
docker-compose $(dccu hdfs yarn hive spark) config > docker-compose.yml
docker-compose -f docker-compose.yml -f docker-compose.build.yml build
docker-compose run -T name-node-format && \
docker-compose up -d name-node && \
docker-compose up -d data-node && \
docker-compose run -T init-hdfs-base
docker-compose up -d resource-manager node-manager
docker-compose up -d metastore-db && \
docker-compose run -T init-hdfs-hive && \
docker-compose run -T hive-metastore-db-schema && \
docker-compose up -d hive-metastore && \
docker-compose up -d hive-server
docker-compose run -T init-hdfs-spark
docker-compose run -p 127.0.0.1:4040:4040 spark-shell
docker-compose run beeline
docker-compose rm --stop --force