我无法创建时间点(尝试通过 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 中引入的。
我明白了!
我正在使用 AWS (OpenSearch),显然 Elasticsearch 7.10 的“版本”不包括 PIT。
我必须升级到 OpenSearch 2.5 或更高版本才能使用 PIT。