Import and shard a collection of data on your cluster

I ran below command it says successfully imported but at the same i see 0 document(s) failed to import. Can you please suggest what to do next ?

Enable sharding on the m103 database.
connected to Mongos
mongos> sh.enableSharding(โ€œm103โ€) is that right ?

user@M103# mongoimport --port 26000 -u m103-admin -p m103-pass --authenticationDatabase admin -d m103 -c products --file products.json
2021-05-12T13:35:20.948+0000 connected to: mongodb://localhost:26000/
2021-05-12T13:35:22.981+0000 9966 document(s) imported successfully. 0 document(s) failed to import.

9966 were inserted correctly and none failed to import. You are good to go with the next step.

2 Likes