You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/02/25 15:26:00 UTC
[jira] [Updated] (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 ]
ASF GitHub Bot updated FLINK-16280:
-----------------------------------
Labels: pull-request-available (was: )
> 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
> Reporter: Jiaqi Li
> Priority: Minor
> Labels: pull-request-available
>
> 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)