-
docker build -t cluster-apache-spark:3.0.2 .
-
docker-compose up -d
-
psql -U postgres -h 0.0.0.0 -p 5432
-
Spark Master Port: 9090
-
Spark Worker1 Port: 9091
-
Spark Worker2 Port: 909
- pyspark --packages graphframes:graphframes-0.8.1-spark2.4-s_2.11 --jars graphframes-0.8.1-spark2.4-s_2.11.jar
- /opt/spark/bin/spark-submit --master spark://spark-master:7077
--driver-memory 1G
--executor-memory 1G
/opt/spark-apps/main.py