栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

CDH6.2.1 hive2.1导入orc分区表异常处理过程

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

CDH6.2.1 hive2.1导入orc分区表异常处理过程

Spark-sql查询正常

 

Hsql查询异常

Failed with exception java.io.IOException:java.lang.RuntimeException: ORC split generation failed with exception: java.lang.ArrayIndexOutOfBoundsException: 6

spark-shell查询异常

查询报错

Truncated the string representation of a plan since it was too large. This behavior can be adjusted by setting

‘spark.debug.maxToStringFields’ in SparkEnv.conf.

无法获取到数据

 

 Hsql查询异常解决

参考链接:

hive2.1.1读取spark写入的orc:ORC split generation failed with exception:ArrayIndexOutOfBoundsException: 6_beetle_lzk的博客-CSDN博客

替换CDH集群的jar包(每个节点都需要替换,注意备份原文件),重启hive客户端:

/opt/cloudera/parcels/CDH/lib/hive/lib/hive-exec-2.1.1-cdh6.2.1.jar

/opt/cloudera/parcels/CDH/jars/hive-exec-2.1.1-cdh6.2.1.jar

/opt/cloudera/parcels/CDH/lib/spark/hive/hive-exec-2.1.1-cdh6.2.1.jar

spark-shell异常解决

参考链接:

Spark: "Truncated the string representation of a plan since it was too large." Warning when using manually created aggregation expression - Stack Overflow

[SPARK-15705] Spark won't read ORC schema from metastore for partitioned tables - ASF JIRA

spark-defaults.conf增加配置:

spark.debug.maxToStringFields=200

spark.sql.hive.convertmetastoreOrc=false

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/777125.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号