2017-04-06 54 views
0

我尝试使用蒙戈 - 火花connector_2.10-2.0.0以星火连接到MongoDB的,但是当我有几台主机不工作的URI蒙戈星火连接器与多家主机

我的URI的样子即:

mongodb://login:[email protected]: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 

它正常工作与其他的URI只有1台主机的错误。

回答

0

问题是我使用的Atlas Free层需要SNI,目前Mongo Java驱动程序不支持mongo-spark-connector_2.10-2.0.0。