先简单写一下,列出关键的部分,es的nested数据结构如何在hive中做映射,es-hadoop的jar包当然要包括在hive的classpath中,就不多说。
这是es的索引结构,略去了不必要的内容
{
"mappings": {
"doc": {
"properties": {
"MotorVehicleID": {
"type": "keyword"
},
"InfoKind": {
"type": "integer"
},
............
"RightBtmY": {
"type": "integer"
},
"MarkTime": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis||epoch_second"
}
"LaneNo": {
"type": "byte"
},
............
"BrandReliability": {
"type": "keyword"
},
"SubIma
hive映射elasticsearch nested复杂数据类型,读取elasticsearch _id字段
最新推荐文章于 2024-06-29 15:34:50 发布
本文介绍了如何在Hive中映射Elasticsearch的Nested复杂数据类型,并读取_Es_id字段。通过创建带有es-hadoop的Hive外部表,详细展示了表结构和映射配置,特别强调了id字段作为增量同步基础和处理多层Nested结构的方法。

最低0.47元/天 解锁文章
137

被折叠的 条评论
为什么被折叠?



