ElasticsearchSink2 icon indicating copy to clipboard operation
ElasticsearchSink2 copied to clipboard

Update to ElasticSearch 2.1

Open ollie314 opened this issue 9 years ago • 4 comments

Update version of elasticsearch to avoid java.lang.NoSuchFieldError: LUCENE_5_3_1 when using elasticsearch 2.1.0.

ollie314 avatar Dec 03 '15 01:12 ollie314

Is this PR compatible with es2.0?

lucidfrontier45 avatar Dec 03 '15 05:12 lucidfrontier45

I'm running ES 2.2.0 and still getting this error when trying to open a TransportClient. Is there any workaround?

thealy avatar Feb 02 '16 22:02 thealy

@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.

ollie314 avatar Feb 06 '16 07:02 ollie314

@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.

lucidfrontier45 avatar Feb 06 '16 09:02 lucidfrontier45