# Convert field string type to geo\_point type

**URL:** <https://discuss.elastic.co/t/convert-field-string-type-to-geo-point-type/65111>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [November 6, 2016, 12:27am UTC](https://discuss.elastic.co/t/convert-field-string-type-to-geo-point-type/65111 "2016-11-06T00:27:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChAkO](https://avatars.discourse-cdn.com/v4/letter/c/45deac/32.png) [@ChAkO](https://discuss.elastic.co/u/ChAkO)\
**Post date:** [November 6, 2016, 12:27am UTC](https://discuss.elastic.co/t/convert-field-string-type-to-geo-point-type/65111/1 "2016-11-06T00:27:02Z")

</div>

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](http://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

---

<div class="post-metadata">

**Author:** ![james.baiera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james.baiera/32/10209_2.png) [@james.baiera](https://discuss.elastic.co/u/james.baiera)\
**Post date:** [November 10, 2016, 6:03pm UTC](https://discuss.elastic.co/t/convert-field-string-type-to-geo-point-type/65111/2 "2016-11-10T18:03:27Z")

</div>

Could you post your index mappings here? Normally geopoint issues are solved by updating mappings explicitly before a job auto-create's an index.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 8, 2016, 6:03pm UTC](https://discuss.elastic.co/t/convert-field-string-type-to-geo-point-type/65111/3 "2016-12-08T18:03:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
