AttributeError: 'NoneType' object has no attribute 'setCallSite'

前端 未结 3 548
借酒劲吻你
借酒劲吻你 2021-01-23 05:47

In PySpark, I want to calculate the correlation between two dataframe vectors, using the following code (I do not have any problem in importing pyspark or createDataFrame):

3条回答
  •  悲哀的现实
    2021-01-23 06:01

    I got the same error not only with Correlation.corr(...) dataframe, but with ldaModel.describeTopics() as well.

    Most probably it is the SPARK bug.

    They forget to initialise DataFrame::_sc._jsc member when created resulting dataframe.

    Each dataframe has normally this member initialised with proper JavaObject.

提交回复
热议问题