You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yangze Guo (Jira)" <ji...@apache.org> on 2021/10/21 03:38:00 UTC
[jira] [Commented] (FLINK-24072) Add support for setting default
headers in elasticsearch connector
[ https://issues.apache.org/jira/browse/FLINK-24072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17432186#comment-17432186 ]
Yangze Guo commented on FLINK-24072:
------------------------------------
[~hackergin]
I'm not an expert on Elasticsearch. May I ask two questions about this issue:
- The `connection.default-headers` should be a map, do I understand it correctly?
- Do we only support `BasicHeader`? Does it make sense for users?
> Add support for setting default headers in elasticsearch connector
> ------------------------------------------------------------------
>
> Key: FLINK-24072
> URL: https://issues.apache.org/jira/browse/FLINK-24072
> Project: Flink
> Issue Type: Improvement
> Components: Connectors / ElasticSearch
> Reporter: jinfeng
> Priority: Major
>
> If we add support for setting default headers , we can add some head options in sql options.
> The ddl would be like this.
> {code:sql}
> // Some comments here
> create table es-sink (
> a varchar,
> b varchar
> ) with (
> 'connector' = 'elasticsearch-7',
> 'connection.default-headers' = 'Authorization:xxxxxxx'
> );
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)