# 情景分析
这个问题困扰了两周了,今天终于得到了答案,因为我的jdk版本太高了
[ jdk11不行,只能jdk8,已亲测 ]
# 问题分析
我是使用flink的sql-client,编写java代码两种方式进行实验,结果都会出现一个类型转换异常
如下所示
Caused by: MetaException(message:Got exception: java.lang.ClassCastException class [Ljava.lang.Object; cannot be cast to class [Ljava.net.URI; ([Ljava.lang.Object; and [Ljava.net.URI; are in module java.base of loader 'bootstrap'))
at org.apache.hadoop.hive.metastore.MetaStoreUtils.logAndThrowMetaException(MetaStoreUtils.java:1342)
at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:278)
at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:210)
... 20 more
# 添加两个文章地址,增加我的论据
https://blog.csdn.net/wuxintdrh/article/details/119538780
https://copyfuture.com/blogs-details/202112191907023850
[Ljava.lang.Object; cannot be cast to class [Ljava.net.URI; ([Ljava.lang.Object; and [Ljava.net.URI
最新推荐文章于 2022-10-23 05:08:03 发布