Elasticsearch - 无法创建时间点

问题描述 投票:0回答:1

我无法创建时间点(尝试通过 Kibana)。

发送以下请求时:

POST test_index/_pit?keep_alive=1m

我收到回复:

{
  "error" : {
    "root_cause" : [
      {
        "type" : "parse_exception",
        "reason" : "request body is required"
      }
    ],
    "type" : "parse_exception",
    "reason" : "request body is required"
  },
  "status" : 400
}

我尝试添加一个空主体以防万一,并得到:

{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "request [/test_index/_pit] contains unrecognized parameter: [keep_alive]"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "request [/test_index/_pit] contains unrecognized parameter: [keep_alive]"
  },
  "status" : 400
}

我使用的是 Elasticsearch 7.10.2 版本,该时间点是在 7.10.0 中引入的。

elasticsearch kibana
1个回答
0
投票

我明白了!

我正在使用 AWS (OpenSearch),显然 Elasticsearch 7.10 的“版本”不包括 PIT。

我必须升级到 OpenSearch 2.5 或更高版本才能使用 PIT。

Amazon OpenSearch Service 中按引擎版本列出的功能

© www.soinside.com 2019 - 2024. All rights reserved.