org.antlr.v4.runtime.atn.ATN; Could not deserialize ATN with UUID

Posted 胖子学习天地

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了org.antlr.v4.runtime.atn.ATN; Could not deserialize ATN with UUID相关的知识,希望对你有一定的参考价值。

项目跑的是spark2.4获取数据后写入Hive表中。使用的是cdh7的版本。

     diagnostics: User class threw exception: java.lang.ExceptionInInitializerError
    at org.apache.spark.sql.catalyst.parser.AbstractSqlParser.parse(ParseDriver.scala:84)
    at org.apache.spark.sql.execution.SparkSqlParser.parse(SparkSqlParser.scala:48)
    at org.apache.spark.sql.catalyst.parser.AbstractSqlParser.parseTableIdentifier(ParseDriver.scala:49)
    at org.apache.spark.sql.DataFrameWriter.saveAsTable(DataFrameWriter.scala:409)
    at com.xinyan.blockchain.ods.DataLoadETH$.loadEth(DataLoadETH.scala:82)
    at com.xinyan.blockchain.ods.DataLoadETH$.main(DataLoadETH.scala:45)
    at com.xinyan.blockchain.ods.DataLoadETH.main(DataLoadETH.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:665)
Caused by: java.lang.UnsupportedOperationException: java.io.InvalidClassException: org.antlr.v4.runtime.atn.ATN; Could not deserialize ATN with UUID 59627784-3be5-417a-b9eb-8131a7286089 (expected aadb8d7e-aeef-4415-ad2b-8204d6cf042e or a legacy UUID).
    at org.antlr.v4.runtime.atn.ATNDeserializer.deserialize(ATNDeserializer.java:154)
    at org.apache.spark.sql.catalyst.parser.SqlBaseLexer.<clinit>(SqlBaseLexer.java:1175)

上面一直报不能反序列化。

以上是关于org.antlr.v4.runtime.atn.ATN; Could not deserialize ATN with UUID的主要内容,如果未能解决你的问题,请参考以下文章