项目作者: zmousa

项目描述 :
Camel ETL route from MySQL database into ElasticSearch, with Elastic Search client API
高级语言: Java
项目地址: git://github.com/zmousa/elastic-search-etl.git
创建时间: 2017-04-17T15:17:21Z
项目社区:https://github.com/zmousa/elastic-search-etl

开源协议:

下载


Elastic Search ETL Project

This java project contains,

  • Camel ETL route from MySQL database into ElasticSearch as bulk insertion.
  • Elastic Search client, with searching restful API (match/fuzzy) search.

Camel Route:

  1. from("jpa://com.es.model.Person?"
  2. + "consumer.namedQuery=selectQuery&"
  3. + "consumer.delay=2000&"
  4. + "maxMessagesPerPoll=50&"
  5. + "consumer.transacted=true&"
  6. + "usePersist=true&"
  7. + "consumeDelete=false")
  8. .threads(20)
  9. .process(docRowProcessor)
  10. .idempotentConsumer(header("id"), MemoryIdempotentRepository.memoryIdempotentRepository(100000))
  11. .to("seda:staging");
  12. from("seda:staging?"
  13. + "multipleConsumers=true&"
  14. + "concurrentConsumers=20")
  15. .aggregate(new ConstantExpression("false"), aggregateStrategy).ignoreInvalidCorrelationKeys().completionSize(50)
  16. .to("elasticsearch://elasticsearch?"
  17. + "operation=BULK&"
  18. + "indexName=person&"
  19. + "indexType=person&"
  20. + "ip=127.0.0.1&"
  21. + "port=9300");

Dependencies