Skip to main content

Mongo Connector

Project description

For complete documentation, check out the Mongo Connector Wiki.

DISCLAIMER

Please note: all tools/ scripts in this repo are released for use “AS IS” without any warranties of any kind, including, but not limited to their installation, use, or performance. We disclaim any and all warranties, either express or implied, including but not limited to any warranty of noninfringement, merchantability, and/ or fitness for a particular purpose. We do not warrant that the technology will meet your requirements, that the operation thereof will be uninterrupted or error-free, or that any errors will be corrected. Any use of these scripts and tools is at your own risk. There is no guarantee that they have been through thorough testing in a comparable environment and we are not responsible for any damage or data loss incurred with their use. You are responsible for reviewing and testing any scripts you run thoroughly before use in any non-testing environment.

System Overview

mongo-connector creates a pipeline from a MongoDB cluster to one or more target systems, such as Solr, Elasticsearch, or another MongoDB cluster. By tailing the MongoDB oplog, it replicates operations from MongoDB to these systems in real-time. It has been tested with Python 2.6, 2.7, 3.3, and 3.4. Detailed documentation is available on the wiki.

Getting Started

Installation

The easiest way to install mongo-connector is with pip:

pip install mongo-connector

You can also install the development version of mongo-connector manually:

git clone https://github.com/10gen-labs/mongo-connector.git
cd mongo-connector
python setup.py install

You may have to run python setup.py install with sudo, depending on where you’re installing mongo-connector and what privileges you have.

Using mongo-connector

mongo-connector replicates operations from the MongoDB oplog, so a replica set must be running before startup. For development purposes, you may find it convenient to run a one-node replica set (note that this is not recommended for production):

mongod --replSet myDevReplSet

To initialize your server as a replica set, run the following command in the mongo shell:

rs.initiate()

Once the replica set is running, you may start mongo-connector. The simplest invocation resembles the following:

mongo-connector -m <mongodb server hostname>:<replica set port> \
                -t <replication endpoint URL, e.g. http://localhost:8983/solr> \
                -d <name of doc manager, e.g., solr_doc_manager>

mongo-connector has many other options besides those demonstrated above. To get a full listing with descriptions, try mongo-connector --help. You can also use mongo-connector with a configuration file.

If you want to jump-start into using mongo-connector with a another particular system, check out:

Troubleshooting/Questions

Having trouble with installation? Have a question about Mongo Connector? Your question or problem may be answered in the FAQ or in the wiki. If you can’t find the answer to your question or problem there, feel free to open an issue on Mongo Connector’s Github page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mongo-connector-2.0.tar.gz (48.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mongo_connector-2.0-py2.py3-none-any.whl (61.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mongo-connector-2.0.tar.gz.

File metadata

  • Download URL: mongo-connector-2.0.tar.gz
  • Upload date:
  • Size: 48.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mongo-connector-2.0.tar.gz
Algorithm Hash digest
SHA256 1d9f397085037e0a425d7d13db886ded82be6685b751bc0869195b7167c8a270
MD5 b5877ed4771f5405400a3d5e784ec9c1
BLAKE2b-256 43bbeef3870f94ea430ddd883fa6aced2d96379368c1c3c79f929b84374e9aa2

See more details on using hashes here.

File details

Details for the file mongo_connector-2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mongo_connector-2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9839c1b78dbab651d26995d05f26a1aa2edcf630db4740182eefd5ae42d9f047
MD5 73f2eebddc69d4961532895cdadeced9
BLAKE2b-256 b2c9d7056a032d74b411da71e3f7ae3a5c7d6a66fe6a44de262d9c738598b3ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page