先简单写一下,列出关键的部分,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 发布