【发布时间】:2017-06-06 00:37:01
【问题描述】:
我正在尝试将 json 转换为数据框,创建临时表并执行一些查询。但是我得到了 org.apache.hadoop.hive.serde2.SerDeException 因为 json 有超过 7 个嵌套级别。我尝试将该属性设置为 true hiveContext.sql("hive.serialization.extend.nesting.levels","true")
但仍然遇到同样的问题。我使用的是火花 1.6.1 版本。解决此问题的任何帮助都会有所帮助。
添加日志ERROR log: error in initSerDe: org.apache.hadoop.hive.serde2.SerDeException Number of levels of nesting supported for LazySimpleSerde is 7 Unable to work with level 9. Use hive.serialization.extend.nesting.levels serde property for tables using LazySimpleSerde.
org.apache.hadoop.hive.serde2.SerDeException: Number of levels of nesting supported for LazySimpleSerde is 7 Unable to work with level 9. Use hive.serialization.extend.nesting.levels serde property for tables using LazySimpleSerde.
谢谢
【问题讨论】:
-
您能否发布日志,因为 Jira-9500 最多支持 24 个级别。 issues.apache.org/jira/browse/HIVE-9500
-
添加了日志@RajatMishra
标签: json apache-spark hive apache-spark-sql