-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FE 和 BE 节点正常,使用 Doris on es ,不能正确链接至 ES 地址 #5389
Comments
Doris会去探测数据所在的节点,你建表的时候配置的地址是用来获取元数据信息的,通过元信息会得到数据分布的节点列表,然后直接去对应的节点上请求 |
不能手动配置哈,你的ES前面是不是有一个代理啊?Doris是不是没法访问ES的数据节点,如果是这样的话得看这个PR了:#5325 |
@wuyunfeng Hi, I faced the same question, doris vesion 0.14. Table DDL: CREATE EXTERNAL TABLE `gch_test_es` (
`k1` bigint(20) COMMENT "",
`k2` datetime COMMENT "",
`k3` varchar(20) COMMENT "",
`k4` varchar(100) COMMENT "",
`k5` float COMMENT ""
) ENGINE=ELASTICSEARCH
PROPERTIES (
"hosts" = "http://10.50.253.1:9200,http://10.50.253.2:9200,http://10.50.253.3:9200,http://10.50.253.4:9200,http://10.50.253.5:9200,http://10.50.253.6:9200,http://10.50.253.7:9200",
"index" = "test1",
"type" = "_doc",
"user" = "",
"password" = ""
); Some error messages appear in the be.log:
Why es request url looks like this, so confused. |
@ddsr-ops same question, do you solve now ? |
@ddsr-ops datanode1/10.50.253.1:9200/test1/_doc/_search 确认下这个吧 地址不对 |
@wuyunfeng I believe you have seen the ddl of table gch_test_es, I config hosts correctly. But I add network.host = 0.0.0.0 in es yml config file, restart es, then doris could connect es successfully. |
嗯 我的意思是地址前面有个datanode1,改成0.0.0.0可以说明还是网络问题呢 |
环境:docker 容器内容部署好单节点 BE 和 FE节点,ES 访问也是正常的,链接至扩展ES 地址,建表语句:
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://172.17.0.1:9200",
"index" = "test",
"type" = "_doc",
"user" = "root",
"password" = "",
"enable_docvalue_scan" = "true"
);
创建语句正常执行成功,hosts 地址如果正确,但是查询的时候 Ip 地址为什么会是72.20.0.2 ,具体错误日志如下:
I0214 11:49:27.722384 15681 task_worker_pool.cpp:1098] finish report task. master host: 172.17.0.2 port: 9020
W0214 11:49:29.185159 15872 http_client.cpp:165] fail to execute HTTP client, errmsg=Failed to connect to 172.20.0.2 port 9200: Connection timed out
W0214 11:49:29.185246 15872 es_scan_reader.cpp:111] Failed to connect to ES server, errmsg is: Failed to connect to 172.20.0.2 port 9200: Connection timed out
W0214 11:49:29.185346 15872 es_http_scan_node.cpp:444] Scanner[0] process failed. status=Failed to connect to ES server, errmsg is: Failed to connect to 172.20.0.2 port 9200: Connection timed out
访问 ES 的地址变成了 172.20.0.2 这个 IP 地址。我试着把 ES 地址改为一个不可用地址会提示如下错误:
1064 - errCode = 2, detailMessage = fetch es table [test] metadata failure: Failed to connect to /172.17.0.2:9200, Time: 0.002000s
请问是否还有配置还是哪里设置不对,怎么解决 ES 的正常访问
The text was updated successfully, but these errors were encountered: