Problems in Lab - Configure a Sharded Cluster:

Hello, when doing the Lab Lab - Configure Sharded Cluster, in my configuration of shard1 I had ports 27011,27012 and 27013. Once everything was done it did not validate with validate_lab_first_sharded_cluster. I have tried to change those ports to those of the lab 27001,27002 and 27003 and it has been impossible for me. How do I have to do this or how can I start from 0 cleaning everythink? Thank you.

Hey @Fernando_Elizaga_32387,

Here’s how:

Hi @Fernando_Elizaga_32387,

The main issue here is that you have created two different replica sets with the name m103-repl. One in the lecture Chapter 3: Sharding - Setting Up a Sharded Cluster in which the nodes are running on the port 27011, 27012 and 27013.

The other one in Chapter 2: Replication, Lab - Initiate a Replica Set Locally in which the nodes are running on port 27001, 27002 and 27003.

In this Lab - Configure a Sharded Cluster, you are supposed to use the replica set that you created in the Replication Lab.

Unfortunately, it is not that simple. You will have to make additional changes to make it work.

To make it work - Please use the correct replica set.

Thanks for surfacing this. I will add a note in the lab to make it more clear.

Hope it helps!

Shubham Ranjan
Curriculum Services Engineer

Thank you very much. I will do this!!!

Thank you very much all set!!!

Closing this thread as the issue has been resolved.