Weichen Ye created FLUME-2700:
---------------------------------
Summary: Support Elasticsearch 1.3.2~1.5.2 in
Flume-Elasticsearch-Sink
Key: FLUME-2700
URL: https://issues.apache.org/jira/browse/FLUME-2700
Project: Flume
Issue Type: Improvement
Components: Sinks+Sources
Affects Versions: v1.5.1, v1.7.0
Reporter: Weichen Ye
For now, flume-elasticsearch-sink is compiled with Elasticsearch-0.9.1, which
was released in May 2013. During these two years, the Java API for
Elasticsearch changes a lot, especially from version 0.9.x to 1.3.x.
This lead to a problem for us: when we change the pom.xml and set the
elasticsearch.version to a higher version, like 1.3.x, 1.4.x, 1.5.x, the old
tests would fail or come out with errors. Some old APIs in the tests in
elasticsearch sink are replaced by new API.
This patch fix all these compatibility problems in elasticsearch API in tests.
With this new patch, we can compile flume-elasticsearch-sink with elasticsearch
version 1.3.x, 1.4.x and1.5.x.
This patch also change the default elasticsearch.version to 1.5.2.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)