[英]java.lang.NoSuchMethodError: org.apache.spark.sql.internal.SQLConf.useDeprecatedKafkaOffsetFetching()Z
I want to show spark dataframe and I used:我想显示火花数据框,我使用了:
df.writeStream.outputMode("append").start().awaitTermination()
But when I got the error when run this line:但是当我在运行这一行时遇到错误时:
21/07/16 01:20:53 ERROR MicroBatchExecution: Query [id = f243e6e6-c02e-4e70-b5c3-6a821fd33232, runId = 312544cf-fea8-45b4-94a1-c052306538cf] terminated with error
java.lang.NoSuchMethodError: org.apache.spark.sql.internal.SQLConf.useDeprecatedKafkaOffsetFetching()Z
Check the version of spark and version of dependencies you have added.检查您添加的 spark 版本和依赖项版本。 Make sure both are having the same versions.确保两者具有相同的版本。 This will resolve the issue.这将解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.