ElasticsearchSink2
ElasticsearchSink2 copied to clipboard
Update to ElasticSearch 2.1
Update version of elasticsearch to avoid java.lang.NoSuchFieldError: LUCENE_5_3_1 when using elasticsearch 2.1.0.
Is this PR compatible with es2.0?
I'm running ES 2.2.0 and still getting this error when trying to open a TransportClient. Is there any workaround?
@lucidfrontier45 sorry for my late response. I'm actually can't assure complete backward compatibility but normally it is since ES ensure backward compatibility on project (these update only consists to fetch the last version of the jars) @thealy I think that the second commit may fix your issue but I can't test since I'm using the ES2.1 and I can't upgrade / downgrade easily and rapidly. The last update works with ES2.1.
@thealy
Do you use normal jar or assembled fat jar? The latter contains elasticsearch-2.0.jar and may be incompatible with newer elasticsearch. The former one does not contains elasticsearch library jar and should be work with any version of elasticserach as long as the API is same.
If you are to use the former one, be sure that the elasticsearch lib dir (/usr/share/elasticsearch/lib
or somewhere) is added to flume-ng's classpath.
BTW, since flume's development seems slowed down, I switched to logstash. If you haven't used it, you can try it.