简体   繁体   English

使用 Apache NIfi 将数据从 RDBMS 迁移到 ElasticSearch

[英]Migrating data from RDBMS to ElasticSearch using Apache NIfi

We are trying to migrate data from RDBMS to elastic search using Apache Nifi.我们正在尝试使用 Apache Nifi 将数据从 RDBMS 迁移到弹性搜索。 We have created pipelines in Nifi and are able to transfer data but are facing some issues and wanted to check if someone already got over them.我们已经在 Nifi 中创建了管道,并且能够传输数据,但面临一些问题,并想检查是否有人已经克服了它们。

Please provide inputs on the below items.请就以下项目提供意见。

1.How to avoid auto-generating _id in elastic search. 1.如何避免弹性搜索中自动生成_id。 We want this to be set from a DB column.我们希望从数据库列中设置它。 We tried providing the column name in the "Identifier Record Path" attribute in the PutElasticSearchHTTPRecord processor but were getting an error that the attribute name is not valid.我们尝试在 PutElasticSearchHTTPRecord 处理器的“标识符记录路径”属性中提供列名称,但收到属性名称无效的错误。 Can you please let us know the acceptable format.你能告诉我们可接受的格式吗?

  1. How to load nested objects into the index using NIfi?如何使用 NIfi 将嵌套对象加载到索引中? We are looking to maintain one to many relationships in the index using nested objects but were unable to find a configuration to do so.我们希望使用嵌套对象在索引中维护一对多关系,但无法找到这样做的配置。 Do we have any processors to do this in Nifi?我们有任何处理器可以在 Nifi 中执行此操作吗? Please let us know.请告诉我们。

Thanks in Advance!提前致谢!

  1. It needs to be a RecordPath statement like /myidfield它需要是像/myidfield这样的 RecordPath 语句

  2. You need to manually create nested fields in Elasticsearch.您需要在 Elasticsearch 中手动创建嵌套字段 This is not a NiFi thing, but how Elasticsearch works.这不是 NiFi 的事情,而是 Elasticsearch 的工作原理。 If you were to post a document with cURL , you would run into the same issues.如果您要使用cURL发布文档,您会遇到同样的问题。

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

相关问题 如何使用InvokeHTTP从Apache Nifi执行ElasticSearch agg查询? - How to execute ElasticSearch agg query from Apache Nifi using InvokeHTTP? Apache Nifi:我想将数据CSV导入Elasticsearch,而不使用apache nifi将其流式传输到其他处理器 - Apache Nifi : I want to ingest my Data CSV to Elasticsearch without streaming it to some other processor using apache nifi Elasticsearch索引RDBMS数据 - Elasticsearch to index RDBMS data 如何使用 Apache NiFi 处理 Elasticsearch 中的动态索引创建? - How to handle dynamic index creation in Elasticsearch using Apache NiFi? Logstash 未将数据迁移到 Elasticsearch - Logstash is not migrating data to Elasticsearch 使用Apache Kafka将数据从MSSQL同步到Elasticsearch - Synchronizing data from MSSQL to Elasticsearch using Apache Kafka 索引使用Elasticsearch从Apache Nut抓取的数据? - index crawled data from Apache nutch using elasticsearch? 无法将数据从Apache配置单元加载到ElasticSearch- - Unable to load data from Apache hive to ElasticSearch - 如何将具有多个主键的RDBMS数据传输到elasticsearch - How to transfer RDBMS data with multiple primary key into elasticsearch 使用 NiFi 仅使用新的 ElasticSearch 文档 - Consume only new ElasticSearch documents using NiFi
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM