【发布时间】:2021-04-29 15:42:50
【问题描述】:
我已使用该命令启动大型索引的重新索引。
curl -XPOST https://<SERVER_HOST_NAME>/_reindex -H 'Content-Type: application/json' -d '
{
"source": {
"index": "source_index"
},
"dest": {
"index": "destination_index"
}
}'
问题是我无法在运行时知道索引操作的状态。
我正在使用任务 API 来获取任务列表。
https://<SERVER_HOST_NAME>/_tasks
我可以看到重新索引任务。
"<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": {}
}
但是当我使用此任务 ID 从邮递员(端点:https://
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "malformed task id 8793524"
}
],
"type": "illegal_argument_exception",
"reason": "malformed task id 8793524"
},
"status": 400
}
【问题讨论】:
标签: elasticsearch