0

I'm trying to build a small cluster using mongodb sharding. In node1 and node2, mongod is started. In node1, config server and mongos are started. All listening 0.0.0.0 with exclusively allocated ports.

When I use mongo to login mongos in node1, I can add Node1 mongod as shard but when I try on Node2, an error occurs:

mongos> sh.addShard("<ip of node2 in local network>")
{ "ok" : 0, "errmsg" : "No common protocol found.", "code" : 126 }

I did some searching but few documentation is about this error.

Kun Ren
  • 101
  • 3

0 Answers0