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.2.tar.gz (48.3 kB view details)

Uploaded Source

Built Distribution

mongo_connector-2.0.2-py2.py3-none-any.whl (61.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for mongo-connector-2.0.2.tar.gz
Algorithm Hash digest
SHA256 5209d661452301037cd622f5e5f2aa1046f46e4be518e39fcccde246b4b2db32
MD5 3ca06ccb1e1cf8c149d95317da978772
BLAKE2b-256 31888e1c59c7806e213bfd0157cea28557a70233f147e2f21187e473b1a9a762

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for mongo_connector-2.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c6c4f74dfb540534ed989b9a07e504e1246fa023f86ba4f98a0a157048b4da9b
MD5 137024d81f2c5dbd3d3485008bb28525
BLAKE2b-256 e2790fe91723a22cdf57a1d4b68eddae5ce86031e0b0260cdc86f212c59b300e

See more details on using hashes here.

Provenance

Supported by

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