如何通过MongoDB Connector for Spark正确使用Geonear管道阶段?

时间:2019-01-14 20:21:11

标签: mongodb apache-spark

尽管我将Geonear定义为聚合管道中的第一阶段,以使用MongoDB Spark Connector来过滤RDD(我遵循this示例)

我收到以下错误消息:

"$geoNear is only valid as the first stage in a pipeline.", "code":40602, "codename": "Location40602"

0 个答案:

没有答案