When trying to access MongoDB database collection data using command such as show collections on one of the secondary member of the replica set, error message such as not master and slaveOk=false occurs. Following screenshot represents the same:
Following command when executed on secondaries resolves the above shown error:
rs.slaveOk();
Latest posts by Ajitesh Kumar (see all)
- Feature Engineering in Machine Learning: Python Examples - May 3, 2024
- Feature Selection vs Feature Extraction: Machine Learning - May 2, 2024
- Model Selection by Evaluating Bias & Variance: Example - May 2, 2024
Leave a Reply