[
https://issues.apache.org/jira/browse/FLINK-3608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15192997#comment-15192997
]
Robert Metzger commented on FLINK-3608:
---------------------------------------
Hi Carlos,
the issue is most likely that you are trying to use our elasticsearch code,
which has been implemented against EL 1.7.
There is the following JIRA: FLINK-3115 which will add support for EL 2 into
Flink.
We will soon add an EL 2 connector into Flink (most likely we'll start working
on it this week). In the meantime, check out this discussion on the mailing
list. A user implemented an EL 2 connector there:
http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/InetSocketAddress-is-not-serializable-when-building-ElasticSearch2-connector-td5296.html
> ImmutableSettings error in ElasticsearchSink
> --------------------------------------------
>
> Key: FLINK-3608
> URL: https://issues.apache.org/jira/browse/FLINK-3608
> Project: Flink
> Issue Type: Bug
> Components: other
> Affects Versions: 0.10.1
> Reporter: Carlos Gonzalez de Zarate
> Labels: elasticsearch, features, sinks
>
> I'm trying to use ElasticsearchSink with Flink 0.10.2 and Elasticsearch
> 2.2.0, and I'm having the following error:
> java.lang.NoClassDefFoundError:
> org/elasticsearch/common/settings/ImmutableSettings
> at
> org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchSink.open(ElasticsearchSink.java:177)
> at
> org.apache.flink.api.common.functions.util.FunctionUtils.openFunction(FunctionUtils.java:36)
> at
> org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator.open(AbstractUdfStreamOperator.java:89)
> at
> org.apache.flink.streaming.runtime.tasks.StreamTask.openAllOperators(StreamTask.java:286)
> at
> org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:213)
> at org.apache.flink.runtime.taskmanager.Task.run(Task.java:584)
> at java.lang.Thread.run(Thread.java:745)
> The problem seems to be the use of the class ImmutableSettings, that has been
> removed since Elastisearch 2.0. I imagine that with previous versions of
> Elasticsearch (i.e: 1.7.1) it will work correctly.
> Reference: https://github.com/elastic/elasticsearch/issues/13151
> Thanks in advanced,
> Carlos
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)