-
在2.1.8中创建到OpenSearch(2.5 / 2.9 / ES6.3 版本均试过,同样的报错)的Catalog CREATE CATALOG es_test PROPERTIES ( 可以正常switch / use default_db / show tables / desc xxx table查看结构 且: fe / be 上 curl 命令均可正常返回 _cat / _mapping / _settings ... 但是在 select * from xxx table 报错: ERROR 1105 (HY000): errCode = 2, detailMessage = fetch es table [shield-action-log-uat] metadata failure: / by zero fe.log 日志如下: 2025-02-14 15:24:19,896 INFO (mysql-nio-pool-49|2549) [EsRestClient.executeResponse():262] es rest client request URL: https://xxx.yyyy.zzz.com/aaa-action-log-uat/_mapping |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
已解决:
类似: CREATE CATALOG es_test PROPERTIES ( 以上: |
Beta Was this translation helpful? Give feedback.
已解决:
create catalog properties 设置
"nodes_discovery" = "false"
OpenSearch的Domain Endpoint后增加 :443
类似:
CREATE CATALOG es_test PROPERTIES (
"type"="es",
"hosts"="https://xxx.yyyy.zzz.com:443",
"user"="root",
"password"="foobar",
"nodes_discovery" = "false"
);
以上:
针对 OpenSearch 2.5 2.7 2.9 验证通过~