wuyunfeng commented on a change in pull request #5325: URL: https://github.com/apache/incubator-doris/pull/5325#discussion_r608366015
########## File path: docs/en/extending-doris/doris-on-es.md ########## @@ -328,6 +328,63 @@ This term does not match any term in the dictionary,and will not return any re The type of `k4.keyword` is `keyword`, and writing data into ES is a complete term, so it can be matched +### Enable node discovery mechanism, default is true(es\_nodes\_discovery=true) + +``` +CREATE EXTERNAL TABLE `test` ( + `k1` bigint(20) COMMENT "", + `k2` datetime COMMENT "", + `k3` varchar(20) COMMENT "", + `k4` varchar(100) COMMENT "", + `k5` float COMMENT "" +) ENGINE=ELASTICSEARCH +PROPERTIES ( +"hosts" = "http://192.168.0.1:8200,http://192.168.0.2:8200", +"index" = "test”, +"type" = "doc", +"user" = "root", +"password" = "root", + +"nodes_discovery" = "true" +); +``` + +Parameter Description: + +Parameter | Description +---|--- +**es\_nodes\_discovery** | Whether or not to enable ES node discovery. the default is true + +When enabled, Doris will find all available nodes from ES. If you only want Doris to access some nodes, you can turn this configuration off Review comment: ```suggestion Doris would find all available related data nodes (shards allocated on)from ES when this is true. Just set false if address of ES data nodes are not accessed by Doris BE, eg. the ES cluster is deployed in the intranet which isolated from your public Internet, and users access through a proxy ``` ########## File path: docs/en/extending-doris/doris-on-es.md ########## @@ -328,6 +328,63 @@ This term does not match any term in the dictionary,and will not return any re The type of `k4.keyword` is `keyword`, and writing data into ES is a complete term, so it can be matched +### Enable node discovery mechanism, default is true(es\_nodes\_discovery=true) + +``` +CREATE EXTERNAL TABLE `test` ( + `k1` bigint(20) COMMENT "", + `k2` datetime COMMENT "", + `k3` varchar(20) COMMENT "", + `k4` varchar(100) COMMENT "", + `k5` float COMMENT "" +) ENGINE=ELASTICSEARCH +PROPERTIES ( +"hosts" = "http://192.168.0.1:8200,http://192.168.0.2:8200", +"index" = "test”, +"type" = "doc", +"user" = "root", +"password" = "root", + +"nodes_discovery" = "true" +); +``` + +Parameter Description: + +Parameter | Description +---|--- +**es\_nodes\_discovery** | Whether or not to enable ES node discovery. the default is true + +When enabled, Doris will find all available nodes from ES. If you only want Doris to access some nodes, you can turn this configuration off + +### Enable SSL protocol when making an HTTP request, default is false(http\_ssl\_enable=true) Review comment: ```suggestion ### whether ES cluster enables https access mode, if enabled should set value with`true`, default is false ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org