mongodb - Mongo Spark connector with several hosts -
i try connect spark mongodb using mongo-spark-connector_2.10-2.0.0 doesn't work when have several hosts in uri
my uri looks :
mongodb://login:password@cluster0-shard-0xxxxx:27017,cluster0-shard-0yyyyy:27017,cluster0-shard-0zzzzz:27017/database?ssl=true&replicaset=cluster0-shard-0&authsource=admin
and errors
command failed error 8000: 'no sni name sent, make sure using mongodb 3.4+ driver/shell.' on server cluster0-shard-0xxxxx
it works fine other uris have 1 host.
the problem was using atlas free tier requires sni, not supported mongo java driver used mongo-spark-connector_2.10-2.0.0.
Comments
Post a Comment