You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2023/01/05 09:32:04 UTC

[GitHub] [doris] 804e commented on issue #15485: [Bug] mapping not found for the ES Cluster

804e commented on issue #15485:
URL: https://github.com/apache/doris/issues/15485#issuecomment-1371979441

   doris不支持获取元数据字段_id吗?
   建表语句
   ```
   CREATE EXTERNAL TABLE `table_1` (
     `_id` varchar,
     `subjectId` text NULL
   ) ENGINE=ELASTICSEARCH
   PROPERTIES (
   "hosts" = "http://elasticsearch:9200",
   "user" = "elastic",
   "password" = "123456",
   "index" = "table_1",
   "enable_docvalue_scan" = "true",
   "max_docvalue_fields" = "20",
   "enable_keyword_sniff" = "true",
   "nodes_discovery" = "false",
   "http_ssl_enabled" = "false"
   );
   ```
   日志报错
   ```
   2023-01-05 17:00:09,511 WARN (es repository|12) [EsTable.syncTableMetaData():308] Exception happens when fetch index [table_1] meta data from remote es cluster.table id: 11005, err: 
   org.apache.doris.external.elasticsearch.DorisEsException: index[table_1] type[{"table_1":{"mappings":{"properties":{"subjectId":{"type":"keyword"}}}}}] mapping not found column_id for the ES Cluster
   ```
   但是文档说是支持获取_id的,是不是哪里有误?
   https://doris.apache.org/zh-CN/docs/dev/ecosystem/external-table/doris-on-es#%E8%8E%B7%E5%8F%96es%E5%85%83%E6%95%B0%E6%8D%AE%E5%AD%97%E6%AE%B5_id


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org