-
Couldn't load subscription status.
- Fork 473
Description
I'm trying to use Docker locally to test out mongo-connector but with no luck so far.
It works fine when connecting to a local mongod instance (i.e. just running mongod --replSet singleNodeRepl in terminal), but in Docker I get this error:
ServerSelectionTimeoutError: Could not reach any servers in [(u'344da2f17060', 27017)]. Replica set is configured with internal hostnames or IPs?
For some reason, the IP address of the replica set member inside the Docker container is a hex string: 344da2f17060.
Any way to make this work in Docker?
Following the instructions here, I created a replica set in a docker container (i.e. docker run mongo mongod --replSet singleNodeRepl), executed rs.initiate() from its mongo shell, loaded it up with some data and ran mongo-connector like so:
mongo-connector -c mongo-connector-config.json -m 192.168.99.100:27017 -t 192.168.99.100:9200 -d elastic_doc_manager
The config only contains namespaces.