@@ -42,6 +42,11 @@ public class ElasticSinkConnector extends SinkConnector {
4242 public static final String CONFIG_DOCUMENTATION_ES_CONNECTION = "The hostname:port to connect to Elasticsearch." ;
4343 public static final String CONFIG_DISPLAY_ES_CONNECTION = "hostname:port" ;
4444
45+ public static final String DEFAULT_ES_PROTOCOL = "http" ;
46+ public static final String CONFIG_NAME_ES_PROTOCOL = "es.protocol" ;
47+ public static final String CONFIG_DOCUMENTATION_ES_PROTOCOL = "The protocol to connect to Elasticsearch." ;
48+ public static final String CONFIG_DISPLAY_ES_PROTOCOL = "HTTP/ HTTPS" ;
49+
4550 public static final String CONFIG_NAME_ES_USER_NAME = "es.user.name" ;
4651 public static final String CONFIG_DOCUMENTATION_ES_USER_NAME = "The user name for authenticating with Elasticsearch." ;
4752 public static final String CONFIG_DISPLAY_ES_USER_NAME = "User name" ;
@@ -210,6 +215,10 @@ public ConfigDef config() {
210215 CONFIG_DOCUMENTATION_ES_PASSWORD , CONFIG_GROUP_ES , 3 , Width .MEDIUM ,
211216 CONFIG_DISPLAY_ES_PASSWORD );
212217
218+ config .define (CONFIG_NAME_ES_PROTOCOL , Type .STRING , DEFAULT_ES_PROTOCOL , Importance .MEDIUM ,
219+ CONFIG_DOCUMENTATION_ES_PROTOCOL , CONFIG_GROUP_ES , 4 , Width .MEDIUM ,
220+ CONFIG_DISPLAY_ES_PROTOCOL );
221+
213222 config .define (CONFIG_NAME_ES_TLS_KEYSTORE_LOCATION , Type .STRING , null , Importance .MEDIUM ,
214223 CONFIG_DOCUMENTATION_ES_TLS_KEYSTORE_LOCATION , CONFIG_GROUP_ES , 10 , Width .MEDIUM ,
215224 CONFIG_DISPLAY_ES_TLS_KEYSTORE_LOCATION );
0 commit comments