elasticsearch 无法检索弹性搜索重新索引任务详细信息获取错误“;格式错误的任务id“;
我已经使用命令启动了一个大索引的重新索引elasticsearch 无法检索弹性搜索重新索引任务详细信息获取错误“;格式错误的任务id“;,elasticsearch,elasticsearch,我已经使用命令启动了一个大索引的重新索引 curl -XPOST https://<SERVER_HOST_NAME>/_reindex -H 'Content-Type: application/json' -d ' { "source": { "index": "source_index" }, "dest": { "index": "des
curl -XPOST https://<SERVER_HOST_NAME>/_reindex -H 'Content-Type: application/json' -d '
{
"source": {
"index": "source_index"
},
"dest": {
"index": "destination_index"
}
}'
您需要在任务ID之前包含节点名称,如下所示:
https://<SERVER_HOST_NAME>/_tasks/<nodename>:8793524
https:///_tasks/:8793524
非常感谢,它成功了,我可以查看状态。我认为问题在于响应/\u任务api的属性名称。它被命名为id,但实际上,它是一个任务编号。
"<nodename>:8793524": {
"node": "<nodename>",
"id": 8793524,
"type": "transport",
"action": "indices:data/write/reindex",
"start_time_in_millis": 1619678127505,
"running_time_in_nanos": 6776632132,
"cancellable": true,
"headers": {}
}
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "malformed task id 8793524"
}
],
"type": "illegal_argument_exception",
"reason": "malformed task id 8793524"
},
"status": 400
}
https://<SERVER_HOST_NAME>/_tasks/<nodename>:8793524