Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Not A Problem
-
None
-
None
-
None
Description
Hello Team,
I am trying to add elasticsearch as sink and my current elasticsearch has enabled SSL and Basic authentication.
I could not connect to elasticsearch with basic authentication.
===========
code:
val credentialsProvider = new BasicCredentialsProvider
credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials("user", "password"))
esSinkBuilder.setRestClientFactory(
restClientBuilder -> {
restClientBuilder.setHttpClientConfigCallback(new RestClientBuilder.HttpClientConfigCallback()
)
}
)
===========
Error Log:
Error:(70, 7) not found: value restClientBuilder
restClientBuilder -> {
Application version used
scala - 2.11
flink - 1.7
elasticsearch - 6.5
elasticsearch connector version - 2.11
Attachments
Issue Links
- is duplicated by
-
FLINK-16788 Support username and password options for Elasticsearch SQL connector
- Closed