[
https://issues.apache.org/jira/browse/FLINK-18857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17174071#comment-17174071
]
Jark Wu commented on FLINK-18857:
---------------------------------
Hi [~fsk119], users shouldn't use the shaded jar
{{flink-sql-connector-elasticsearch}} in programing project, otherwise, there
is always a class mismatch happen.
Instead, users should use {{flink-connector-elasticsearch}} as the project
dependency.
> Invalid lambda deserialization when use ElasticsearchSink#Builder to build
> ElasticserachSink
> --------------------------------------------------------------------------------------------
>
> Key: FLINK-18857
> URL: https://issues.apache.org/jira/browse/FLINK-18857
> Project: Flink
> Issue Type: Bug
> Components: Connectors / ElasticSearch, Table SQL / API
> Affects Versions: 1.10.0, 1.11.0
> Reporter: Shengkai Fang
> Priority: Major
>
> Currently when we use code below
> {code:java}
> new ElasticSearchSink.Builder(...).build()
> {code}
> we will get Invalid lambda deserialization error if users doesn't
> setRestClientFactory explicitly. The reasion behind this bug has been
> figured out in FLINK-18006, which is caused by maven. However, we only fix
> the behaviour in ElasticSearchDynamicSink. When users who build es sink by
> themselvies will still get the error.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)