In ref to mongo dba course trying to create replica set as asked shown by instructor in El Capitano (Single machine only), I get following error. I have three members:
Make sure you have the replSetName name configured in /etc/mongod.conf
replSetName
/etc/mongod.conf
replication: replSetName: "somename"
Then restart your mongod.
sudo service mongod stop sudo service mongod start sudo service mongod restart