首页 > 解决方案 > Amazon EMR 集群中的无限递归 (StackOverflowError)

问题描述

我们在 Amazon EMR 集群上运行 Spark 应用程序。我们的代码接收 JSON 数据,将其转换为数据帧,对其执行 Spark SQL 转换,然后将生成的数据帧写入 csv 文件(至少,它会尝试这样做)。但是,在 EMR 集群上执行代码时,我们会收到以下错误:

ERROR AsyncEventQueue: Listener EventLoggingListener threw an exception
com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion 
(StackOverflowError) (through reference chain: 
scala.collection.convert.IterableWrapper[0]->org.apache.spark.sql.execution.SparkPlanInfo["children"]->scala.collection.convert.IterableWrapper[0]->

...ETC

任何人都可以帮助我们吗?非常感谢您提前。

标签: apache-sparkapache-spark-sqlamazon-emrinfinite-recursion

解决方案


推荐阅读