Can I ingest avro messages contains Map<String, String> field into Hive table?

asked 2018-07-11 22:24:13 -0500

casel.chen gravatar image

updated 2018-07-18 20:34:53 -0500

Can I ingest avro messages contains Map<string, string=""> field into Hive table? If can, how to achieve it? Thanks!

The avro message structure is something like

    {
     "namespace": "com.example.avro",
     "type": "record",
     "name": "UserInfo",
     "fields": [
        {"name": "id", "type": "long"},
        {"name": "name", "type": "string"},
        {"name": "contact", "type": {"type": "map", "values": "string"}}
     ]
    }
edit retag flag offensive close merge delete

Comments

Can you give an example of the Avro message structure?

metadaddy gravatar imagemetadaddy ( 2018-07-18 20:22:02 -0500 )edit

The avro message structure is something like above example.

casel.chen gravatar imagecasel.chen ( 2018-07-18 20:33:45 -0500 )edit