so, I initiated data-bearing replica sets, initiated config replica set as well:
--- Sharding Status ---
sharding version: {
"_id" : 1,
"minCompatibleVersion" : 5,
"currentVersion" : 6,
"clusterId" : ObjectId("5de3ea833fa49cb726ca8a46")
}
shards:
active mongoses:
"3.4.2" : 1
autosplit:
Currently enabled: yes
...
Now trying to import:
$ mongoimport --port=26000 --username=mo_admin --collection=electro2 --db=test --headerline --type=csv --file="/dataset/electro2.csv" --ignoreBlanks
Enter password:
2019-12-01T17:11:48.673+0000 Failed: error connecting to db server: server returned error on SASL authentication step: Authentication failed.
2019-12-01T17:11:48.674+0000 imported 0 documents
~
OK, then I try with --ssl thiking that may be the culprit:
mongoimport --port=26000 --username=mo_admin --collection=electro2 --db=test --headerline --type=csv --file="/dataset/electro2.csv" --ignoreBlanks --ssl ./data/shard_keyfile
Enter password:
2019-12-01T17:13:55.016+0000 error validating settings: incompatible options: --file and positional argument(s)
2019-12-01T17:13:55.016+0000 try ‘mongoimport --help’ for more information
~
Thoughts, suggestions? thnx