I am trying to restore some collections to the replica server's db local.
I am gonna run some data on it. but I am getting errors. is there anyway around this?
mongorestore --db local /dumps/
ERROR: trying to write to non-master 127.0.0.1:27017 (127.0.0.1) isMaster info: { setName: "hosthost", setVersion: 2, ismaster: false, secondary: true, hosts: [ "mongo-replica.hosthost.com:27017", "mongo-temp:27017" ], primary: "mongo-temp:27017", me: "mongo-replica.hosthost.com:27017", maxBsonObjectSize: 16777216, maxMessageSizeBytes: 48000000, maxWriteBatchSize: 1000, localTime: new Date(1479528226168), maxWireVersion: 2, minWireVersion: 0, ok: 1.0 }