简体   繁体   English

将MongoDB与Elasticsearch macOSX集成

[英]Integrate MongoDB with elasticsearch macOSX

I am trying to integrate MongoDB with Elasticsearch 5.5.2. 我正在尝试将MongoDB与Elasticsearch 5.5.2集成。 Can anyone provide me the instructions on how do i proceed? 谁能向我提供有关如何进行的说明? I have not found proper links for integrating them. 我没有找到合适的链接来集成它们。 I have understood that we need to install mongo-connector/river-mongodb but i am unable to install it. 我了解我们需要安装mongo-connector / river-mongodb,但我无法安装它。

I have found this command 我找到了这个命令

pip install 'mongo-connector[elastic5]' 

but this is for python environment. 但这是针对python环境的。 I am using java environment. 我正在使用Java环境。

I have also tried these following commands: 我也尝试了以下命令:

my/elasticsearch/location/bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/1.4.0 
my/elasticsearch/location/bin/plugin -install richardwilly98/elasticsearch-river-mongodb/1.4.0 

I get this: 我得到这个:

 my/elasticsearch/location/bin/plugin: is a directory

I am using macOSX. 我正在使用macOSX。 I have already installed ElasticSearch and MongoDB. 我已经安装了ElasticSearch和MongoDB。 Thanks. 谢谢。

You might want to try the MongoConnector Plugin. 您可能需要尝试MongoConnector插件。 It supports data sync between MongoDB and Elastic Search. 它支持MongoDB和Elastic Search之间的数据同步。

1) Install Mongo Connector in your server. 1)在您的服务器中安装Mongo Connector。

pip install mongo-connector

2) Install Doc Manager based on target system. 2)根据目标系统安装文档管理器。 There are various implementations for Doc Manager based on the Target system. 基于目标系统的文档管理器有多种实现方式。 Install the one that supports Elastic Search and in particular the version that you have. 安装一个支持Elastic Search的版本,尤其是您拥有的版本。 Eg) 例如)

pip install 'mongo-connector[elastic5]' pip install'mongo-connector [elastic5]'

3) Start Mongo Connector with configurations of the source(mongodb) and target systems. 3)使用源(mongodb)和目标系统的配置启动Mongo Connector。 Eg) 例如)

mongo-connector -m : -t http://localhost:8983/solr> -d mongo-connector -m:-t http:// localhost:8983 / solr> -d

Now data will be automatically synced up between the two systems. 现在,数据将在两个系统之间自动同步。

For more information, use the following links, 有关更多信息,请使用以下链接,

https://www.mongodb.com/blog/post/introducing-mongo-connector https://www.mongodb.com/blog/post/introducing-mongo-connector

https://github.com/mongodb-labs/mongo-connector https://github.com/mongodb-labs/mongo-connector

https://github.com/mongodb-labs/mongo-connector/wiki/Usage%20with%20ElasticSearch https://github.com/mongodb-labs/mongo-connector/wiki/用法%20with%20ElasticSearch

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM