如何通过星火地理空间查询的查询的MongoDB [英] How to query MongoDB via Spark for geospatial queries
问题描述
有没有办法使用MongoDB的星火地理空间查询?我不知道怎样做,与Stratio。
Is there any way to use MongoDB with Spark for geospatial queries? I cannot see how to do that with Stratio.
推荐答案
有很多方法可以从查询火花地理空间数据。使用麦哲伦 https://github.com/harsha2010/magellan 或蜂巢ESRI地理空间工具。 https://github.com/Esri/spatial-framework-for-hadoop
我从来没有从stratio试图蒙戈LIBRAIRIE,但与火花数据源API或蒙戈连接器,我认为你可以蒙戈语法运行地理查询,然后将其转换成一个RDD或数据框。
There are many ways to query geospatial data from spark. Use magellan https://github.com/harsha2010/magellan or hive esri geospatial toolkit. https://github.com/Esri/spatial-framework-for-hadoop I've never tried the mongo librairie from stratio, but with the spark data source api, or the mongo connector, I think you can run geo queries with the mongo syntax then convert them into an RDD or a Dataframe.
这篇关于如何通过星火地理空间查询的查询的MongoDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!