mongoimport error with MongoDB Atlas -


trying mongoimport mongodb atlas service,

mongoimport --host replication-test-cluster.xxxxxxxxxxxxxxxx.mongodb.net:27017,replication-test-cluster.xxxxxxxxxxxxxxxx:27017,replication-test-cluster.xxxxxxxxxxxxxxxx.mongodb.net:27017 --ssl -u xxxxxx -p 'xxxxxxxxxx' --authenticationdatabase admin  --db to_replicate --collection twitter_stats --drop --file city_of_seattle_official_twitter_accounts_statistics.csv 

the below error throws

2017-07-26t13:04:18.317+0530    [........................] to_replicate.twitter_stats   0b/40.8kb (0.0%) 2017-07-26t13:04:18.489+0530    [........................] to_replicate.twitter_stats   0b/40.8kb (0.0%) 2017-07-26t13:04:18.489+0530    failed: error connecting db server: no reachable servers 2017-07-26t13:04:18.489+0530    imported 0 documents 

as per official doc of atlas need use replica set name, find in atlas console

from connect dialog, cluster host information. information specified mongoimport in --host option.

if atlas cluster replica set, must retrieve replica set name. example:

myatlasrs/atlas-host1:27017,atlas-host2:27017,atlas-host3:27017 

appreciate help


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -