Mongo连接器的Elastic2插件
elastic2-doc-manager的Python项目详细描述
现在,Mongo连接器项目最初是MongoDB Mongo实验室的项目,现在由YouGov,Plc.保管。图片:https://travis-ci.org/yougov/elastic2-doc-manager.svg?branch=master
:a lt:view-build-status
:target:https://travis-ci.org/yougov/elastic2-doc-manager
Getting Started
==
此包是
`mongo connector<;https://github.com/yougov/mongo connector>的文档管理器;`它的目标是elasticsearch版本2.x和5.x——别让这个名字愚弄了你!
有关使用ElasticSearch运行Mongo连接器的信息,请参见
`使用ElasticSearch的Mongoconnector用法
<;https://github.com/yougov/mongo connector/wiki/usage%20 with%20ElasticSearch>;`
维基页面。
安装
==
elastic2文档管理器的安装取决于要针对的是
elasticsearch的哪个版本。
elasticsearch 1.x
----
这是elasticsearch 2.x和5.x的文档管理器。如果要针对elasticsearch 1.x,请安装
`Elastic Doc Manager<;https://github.com/yougov/Elastic Doc Manager>;`.
----
pip安装“elastic2文档管理器[elastic2]”
---------
如果要与elasticsearch 5.x服务器一起使用,请使用::
。注:0.3.0版增加了对ElasticSearch 5.x的支持。
Amazon ElasticSearch服务
----
要与Amazon ElasticSearch服务一起使用,您必须安装所需的AWS
依赖项以及ElasticSearch版本::
开发
——
您还可以手动安装elastic2 doc manager的开发版本:
git clone https://github.com/yougov/elastic2 doc manager.git
pip install-e./elastic2 doc manager[elastic2]'
您可能必须使用“sudo”运行“pip”,取决于您的安装位置和您拥有的特权。注意:请注意,在Mongo连接器版本2.2.2之前,Elastic
doc manager与Mongo连接器打包在一起,并且只支持
ElasticSearch 1.x.
Elastic 2.x文档管理器Github存储库的副本
测试不包含在来自PYPI的包中,只能通过在Github上克隆此存储库来获取:
Git克隆https://github.com/yougov/elastic2 doc manager
2。tox
安装“tox<;https://pypi.org/project/tox>;”`.
2.环境变量
有几个影响测试的环境变量。这些都是在tox.ini中定义的
所有测试都位于“tests”目录中。
您可以使用一个命令运行所有测试(这适用于所有受支持的python版本)::
error messages
~~~~~~~~~~~~~~~
某些测试旨在生成大量“error”级别的日志消息,
特别是回滚测试。mongo connector记录在oplog中迭代光标时遇到的异常,因此我们可以在控制台输出中看到这些异常,mongodb集群在测试中被分离。一个只要所有的
测试都通过并显示“确定”消息,就一切正常。
:a lt:view-build-status
:target:https://travis-ci.org/yougov/elastic2-doc-manager
Getting Started
==
此包是
`mongo connector<;https://github.com/yougov/mongo connector>的文档管理器;`它的目标是elasticsearch版本2.x和5.x——别让这个名字愚弄了你!
有关使用ElasticSearch运行Mongo连接器的信息,请参见
`使用ElasticSearch的Mongoconnector用法
<;https://github.com/yougov/mongo connector/wiki/usage%20 with%20ElasticSearch>;`
维基页面。
安装
==
elastic2文档管理器的安装取决于要针对的是
elasticsearch的哪个版本。
elasticsearch 1.x
----
这是elasticsearch 2.x和5.x的文档管理器。如果要针对elasticsearch 1.x,请安装
`Elastic Doc Manager<;https://github.com/yougov/Elastic Doc Manager>;`.
pip安装“elastic2文档管理器[elastic2]”
如果要与elasticsearch 5.x服务器一起使用,请使用::
。注:0.3.0版增加了对ElasticSearch 5.x的支持。
Amazon ElasticSearch服务
----
要与Amazon ElasticSearch服务一起使用,您必须安装所需的AWS
依赖项以及ElasticSearch版本::
开发
——
您还可以手动安装elastic2 doc manager的开发版本:
git clone https://github.com/yougov/elastic2 doc manager.git
pip install-e./elastic2 doc manager[elastic2]'
您可能必须使用“sudo”运行“pip”,取决于您的安装位置和您拥有的特权。注意:请注意,在Mongo连接器版本2.2.2之前,Elastic
doc manager与Mongo连接器打包在一起,并且只支持
ElasticSearch 1.x.
Elastic 2.x文档管理器Github存储库的副本
测试不包含在来自PYPI的包中,只能通过在Github上克隆此存储库来获取:
Git克隆https://github.com/yougov/elastic2 doc manager
2。tox
安装“tox<;https://pypi.org/project/tox>;”`.
2.环境变量
有几个影响测试的环境变量。这些都是在tox.ini中定义的
所有测试都位于“tests”目录中。
您可以使用一个命令运行所有测试(这适用于所有受支持的python版本)::
error messages
~~~~~~~~~~~~~~~
某些测试旨在生成大量“error”级别的日志消息,
特别是回滚测试。mongo connector记录在oplog中迭代光标时遇到的异常,因此我们可以在控制台输出中看到这些异常,mongodb集群在测试中被分离。一个只要所有的
测试都通过并显示“确定”消息,就一切正常。