After clustering Mongodb 3.0.1 on two machines. In slave mode, when I run this command “show dbs” , it shows “not master” .
Here is the error:
E QUERY Error: listDatabases failed:
{ "note" : "from execCommand", "ok" : 0, "errmsg" : "not master" }
at Error (<anonymous>)
Please tell me how I can solve this problem.
source
share