When I run the following command:
spark-submit --name "My app" --master "local[*]" --py-files main.py --driver-memory 12g --executor-memory 12