@@ -19,16 +19,23 @@ support version >= 2.x and < 8.x.
1919
2020## Options
2121
22- | name | type | required | default value |
23- | -------------| --------| ----------| ---------------|
24- | hosts | array | yes | - |
25- | username | string | no | - |
26- | password | string | no | - |
27- | index | string | yes | - |
28- | source | array | no | - |
29- | scroll_time | string | no | 1m |
30- | scroll_size | int | no | 100 |
31- | schema | | no | - |
22+ | name | type | required | default value |
23+ | -------------------------| ---------| ----------| ---------------|
24+ | hosts | array | yes | - |
25+ | username | string | no | - |
26+ | password | string | no | - |
27+ | index | string | yes | - |
28+ | source | array | no | - |
29+ | scroll_time | string | no | 1m |
30+ | scroll_size | int | no | 100 |
31+ | schema | | no | - |
32+ | tls_verify_certificate | boolean | no | true |
33+ | tls_verify_hostnames | boolean | no | true |
34+ | tls_keystore_path | string | no | - |
35+ | tls_keystore_password | string | no | - |
36+ | tls_truststore_path | string | no | - |
37+ | tls_truststore_password | string | no | - |
38+ | common-options | | no | - |
3239
3340
3441
@@ -59,8 +66,38 @@ Maximum number of hits to be returned with each Elasticsearch scroll request.
5966The structure of the data, including field names and field types.
6067If you don't config schema, you must config ` source ` .
6168
69+ ### tls_verify_certificate [ boolean]
70+
71+ Enable certificates validation for HTTPS endpoints
72+
73+ ### tls_verify_hostname [ boolean]
74+
75+ Enable hostname validation for HTTPS endpoints
76+
77+ ### tls_keystore_path [ string]
78+
79+ The path to the PEM or JKS key store. This file must be readable by the operating system user running SeaTunnel.
80+
81+ ### tls_keystore_password [ string]
82+
83+ The key password for the key store specified
84+
85+ ### tls_truststore_path [ string]
86+
87+ The path to PEM or JKS trust store. This file must be readable by the operating system user running SeaTunnel.
88+
89+ ### tls_truststore_password [ string]
90+
91+ The key password for the trust store specified
92+
93+ ### common options
94+
95+ Source plugin common parameters, please refer to [ Source Common Options] ( common-options.md ) for details
96+
6297## Examples
98+
6399simple
100+
64101``` hocon
65102Elasticsearch {
66103 hosts = ["localhost:9200"]
@@ -69,6 +106,7 @@ Elasticsearch {
69106}
70107```
71108complex
109+
72110``` hocon
73111Elasticsearch {
74112 hosts = ["elasticsearch:9200"]
@@ -94,8 +132,52 @@ Elasticsearch {
94132}
95133```
96134
135+ SSL (Disable certificates validation)
136+
137+ ``` hocon
138+ source {
139+ Elasticsearch {
140+ hosts = ["https://localhost:9200"]
141+ username = "elastic"
142+ password = "elasticsearch"
143+
144+ tls_verify_certificate = false
145+ }
146+ }
147+ ```
148+
149+ SSL (Disable hostname validation)
150+
151+ ``` hocon
152+ source {
153+ Elasticsearch {
154+ hosts = ["https://localhost:9200"]
155+ username = "elastic"
156+ password = "elasticsearch"
157+
158+ tls_verify_hostname = false
159+ }
160+ }
161+ ```
162+
163+ SSL (Enable certificates validation)
164+
165+ ``` hocon
166+ source {
167+ Elasticsearch {
168+ hosts = ["https://localhost:9200"]
169+ username = "elastic"
170+ password = "elasticsearch"
171+
172+ tls_keystore_path = "${your elasticsearch home}/config/certs/http.p12"
173+ tls_keystore_password = "${your password}"
174+ }
175+ }
176+ ```
177+
97178## Changelog
98179
99180### next version
100181
101- - Add Elasticsearch Source Connector
182+ - Add Elasticsearch Source Connector
183+ - [ Feature] Support https protocol & compatible with opensearch ([ 3997] ( https://github.com/apache/incubator-seatunnel/pull/3997 ) )
0 commit comments