Using mongorestore and mongoimport getting the same error, cmd similar below
mongorestore -d pets /path/to/pets
ERROR: trying to write to non-master <ip>:27017
isMaster info: { ismaster: false, secondary: false, info: "can't get local.system.replset config from self or any seed (EMPTYCONFIG)", isreplicaset: true, maxBsonObjectSize: 16777216, localTime: new Date(1352938132314), ok: 1.0 }
Could you tell me how to import data successfully?
similar error when I did mongoimport.
thanks