-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
环境: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 的正常访问