I need to convert a field string coordinates to geo_point type to visualize in kibana correctly.
I've tried to convert this field in the hive script, it's possible?
CREATE EXTERNAL TABLE hive_to_es_table
(
id string,
geo_coordinates string
)
STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler'
TBLPROPERTIES('es.resource' = 'my_index/my_type',
'es.mapping.id' = 'id',
'es.mapping.names' = 'geo_coordinates:@geo_point',
'es.nodes' = 'minode.corp');
I have not gotten it.
Can anybody help me?
Thanks