You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Till Rohrmann (Jira)" <ji...@apache.org> on 2020/03/04 15:08:00 UTC
[jira] [Assigned] (FLINK-16280) Fix sample code errors in the
documentation about elasticsearch connector.
[ https://issues.apache.org/jira/browse/FLINK-16280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Till Rohrmann reassigned FLINK-16280:
-------------------------------------
Assignee: Jiaqi Li
> Fix sample code errors in the documentation about elasticsearch connector.
> --------------------------------------------------------------------------
>
> Key: FLINK-16280
> URL: https://issues.apache.org/jira/browse/FLINK-16280
> Project: Flink
> Issue Type: Improvement
> Components: Connectors / ElasticSearch, Documentation
> Reporter: Jiaqi Li
> Assignee: Jiaqi Li
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> When I refer to the document for coding, I find that there is an error demonstration in scala code in the Elasticsearch connector section of the Flink document.
> {code:scala}
> esSinkBuilder.setRestClientFactory(
> restClientBuilder -> {
> restClientBuilder.setDefaultHeaders(...)
> restClientBuilder.setMaxRetryTimeoutMillis(...)
> restClientBuilder.setPathPrefix(...)
> restClientBuilder.setHttpClientConfigCallback(...)
> }
> )
> {code}
> After modification.
> {code:scala}
> esSinkBuilder.setRestClientFactory(new RestClientFactory {
> override def configureRestClientBuilder(restClientBuilder: RestClientBuilder): Unit = {
> restClientBuilder.setDefaultHeaders(...)
> restClientBuilder.setMaxRetryTimeoutMillis(...)
> restClientBuilder.setPathPrefix(...)
> restClientBuilder.setHttpClientConfigCallback(...)
> }
> })
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)