Mongo-connector Installation:
Https://github.com/mongodb-labs/mongo-connector
1. Yum-y Install openssl*
2. Compile and install Python3
: https://www.python.org/ftp/python/
- Tar zxvf python-3.5.2.tgz
- CD Python-3.5.2
- ./configure
- Make && make install
(at the end of the installation you can see the prompt that PIP3 has been installed, if prompted require Tls/ssl, stating that Openssl-devel is not installed)
Yum Install Openssl-devel-y
After the 3.PIP3 installation is successful, install the Mongo-connector:
PIP3 install--target=/usr/local/pythonpip/site-packages ' mongo-connector[elastic5] '
4. Start the MONGO cluster
5. Launch ES cluster
6. Run the Connect command:
Mongo-connector-m 192.168.1.151:27017-t 192.168.1.151:9200-d Elastic2_doc_manager
7. Verify that the MongoDB data is synchronized to es:
You are welcome!
MongoDB Learning Note mongo-connector installation