hive映射elasticsearch nested复杂数据类型,读取elasticsearch _id字段

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

你可能感兴趣的:(elasticsearch,hive读取es嵌套数据类型)