我正在尝试使用 pandas-profiling 库实现数据分析。我直接从蜂巢获取数据。这是我收到的错误
Py4JJavaError: An error occurred while calling o114.collectToPython.
: org.apache.spark.SparkException: Job aborted due to stage failure: Task 2 in stage 14.0 failed 4 times, most recent failure: Lost task 2.3 in stage 14.0 (TID 65, bdgtr026x30h4.nam.nsroot.net, executor 11): org.apache.spark.SparkException: Kryo serialization failed: Buffer overflow. Available: 0, required: 15823824. To avoid this, increase spark.kryoserializer.buffer.max value.
我试图在 python 中的 jupyter notebook 上设置我的火花,但我收到了同样的错误
spark.conf.set("spark.kryoserializer.buffer.max", "512")
spark.conf.set('spark.kryoserializer.buffer.max.mb', 'val')
根据我的代码,我错过了任何步骤吗?
df = spark.sql('SELECT id,acct from tablename').cache()
report = ProfileReport(df.toPandas())