I’ve been having a lot of trouble with the Deploy a Sharded Cluster lab in M103 Chapter 3. I’m very new at all this, so I’m sure my thinking is wrong somewhere.
Below are the steps I tried for the lab (Deploy a sharded cluster):
After each step (surrounded by stars) I included the command I used. I can successfully pass the first test which is getting mongos to run but am unable to add a shard to pass the second test.
1. Edit config file:
2. Start the mongos server:
mongos -f mongos.conf
3. Connect to mongos:
mongo --port 26000 --username m103-admin --password m103-pass --authenticationDatabase admin
4. Add a shard (this step returns a syntax error as shown below)
Any help would be greatly appreciated.