Mongo 具有多个主机的 Spark 连接器
Mongo Spark connector with several hosts
我尝试使用 mongo-spark-connector_2.10-2.0.0 将 Spark 连接到 MongoDB,但是当我在 URI
中有多个主机时它不起作用
我的 URI 看起来像这样:
mongodb://login:password@cluster0-shard-0xxxxx:27017,cluster0-shard-0yyyyy:27017,cluster0-shard-0zzzzz:27017/database?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin
我收到这样的错误
Command failed with error 8000: 'no SNI name sent, make sure using a MongoDB 3.4+ driver/shell.' on server cluster0-shard-0xxxxx
它适用于其他只有 1 个主机的 URI。
问题是我使用的是需要 SNI 的 Atlas 免费层,mongo-spark-connector_2 当前使用的 Mongo Java 驱动程序不支持 SNI。10-2.0.0 .
我尝试使用 mongo-spark-connector_2.10-2.0.0 将 Spark 连接到 MongoDB,但是当我在 URI
中有多个主机时它不起作用我的 URI 看起来像这样:
mongodb://login:password@cluster0-shard-0xxxxx:27017,cluster0-shard-0yyyyy:27017,cluster0-shard-0zzzzz:27017/database?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin
我收到这样的错误
Command failed with error 8000: 'no SNI name sent, make sure using a MongoDB 3.4+ driver/shell.' on server cluster0-shard-0xxxxx
它适用于其他只有 1 个主机的 URI。
问题是我使用的是需要 SNI 的 Atlas 免费层,mongo-spark-connector_2 当前使用的 Mongo Java 驱动程序不支持 SNI。10-2.0.0 .