How to installation spark standalone mode in ubuntu
I'd recommend using pip pyspark, as it's super easy
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install pyspark
$ pyspark

You can modify Spark configuration by adding files to venv/lib/python3.x/site-packages/pyspark/conf/