PySpark error: AttributeError: 'NoneType' object has no attribute '_jvm'

前端 未结 5 1999
既然无缘
既然无缘 2020-12-06 10:33

I have timestamp dataset which is in format of

And I have written a udf in pyspark to process this dataset and return as Map of key values. But am getting below err

5条回答
  •  一整个雨季
    2020-12-06 10:59

    Mariusz answer didn't really help me. So if you like me found this because it's the only result on google and you're new to pyspark (and spark in general), here's what worked for me.

    In my case I was getting that error because I was trying to execute pyspark code before the pyspark environment had been set up.

    Making sure that pyspark was available and set up before doing calls dependent on pyspark.sql.functions fixed the issue for me.

提交回复
热议问题