pyspark : NameError: name 'spark' is not defined

NoSuchKey