简体   繁体   English

Elasticsearch索引RDBMS数据

[英]Elasticsearch to index RDBMS data

These are three simple questions which was surprisingly hard to find definite answers. 这是三个简单的问题,难以找到明确的答案。

  1. Does ElasticSearch support indexing data in RDBMS tables ( Oracle/SQLServer/Informix) out of the box? ElasticSearch是否支持开箱即用的RDBMS表(Oracle / SQLServer / Informix)中的索引数据?
  2. If yes, can you please point me to documentation on how to do it 如果是,请您指出有关如何操作的文档
  3. If not, what are alternate ways (plugins like Rivers - deprecated) with good reputation 如果没有,有什么是替代方式(像Rivers这样的插件 - 已弃用)并且声誉良好

I'm surprised there isn't any solid answer as yet for this. 令我感到惊讶的是,目前还没有任何可靠的答案。 So here's the solution. 所以这是解决方案。 Logstash directly gives us the ability to push data from a RDBMS into Elasticsearch. Logstash直接使我们能够将数据从RDBMS推送到Elasticsearch。

Here's a link to a tutorial which tell you how to go about it. 这是一个教程的链接,告诉你如何去做。 Briefly(all details in link 1), you simply need a JDBC driver for the relational database you'll be using (Postgres, MySQL etc) and make a config file specifying your input as the Relational Database and your output as Elasticsearch. 简单地说(链接1中的所有细节),您只需要一个JDBC驱动程序用于您将使用的关系数据库(Postgres,MySQL等),并创建一个配置文件,将输入指定为关系数据库,输出指定为Elasticsearch。 You can also specify a cron which would allow you to keep updating one regular intervals. 您还可以指定一个允许您不断更新一个定期间隔的cron。

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

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