I wondered why I got an error on piComputeClusterApp.py. There's a clustername called spark://un:7077 in it, instead of local[]. I think you forgot to change it to local? I've tried the code with local[] and that works.
spark = SparkSession.builder.appName("PySparkPi on a cluster")
.master("spark://un:7077").getOrCreate()
#.master("local[*]").getOrCreate()