Hi,
I am trying to run the commands in Understanding Explain for Sharded Clusters lecture as given in the lecture materials understanding_explain_part_2.js.
However, I am getting error message as given below:
MongoServerError: (Unauthorized) not authorized on admin to execute command { enableSharding: “m201”, lsid: { id: {4 [91 135 115 121 162 34 70 17 132 180 107 179 48 9 115 34]} }, $clusterTime: { clusterTime: {1644971864 4}, signature: { hash: {0 [190 186 102 82 221 170 54 147 106 27 96 254 229 184 86 66 143 115 20 23]}, keyId: 7004158947498131456.000000 } }, $db: “admin” }
Also can we use these sharding commands from compass as well?
Any guidance greatly appreciated.
Thank you
Siva