[ 
https://issues.apache.org/jira/browse/FLINK-16280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dian Fu updated FLINK-16280:
----------------------------
    Summary: Fix sample code errors in the documentation about elasticsearch 
connector  (was: Fix sample code errors in the documentation about 
elasticsearch connector.)

> 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
>             Fix For: 1.9.3, 1.10.1, 1.11.0
>
>          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)

Reply via email to