我在 6.2.0 版本的旧 Elasticsearch 服务器(Windows 服务器)中有一个索引,现在我尝试将其移动到 7.6.2 版本的 Elasticsearch 上的新服务器(Linux)。我尝试使用以下命令将索引从旧服务器迁移到新服务器,但它抛出异常。
POST _reindex
{
"source": {
"remote": {
"host": "http://MyOldDNSName:9200"
},
"index": "test"
},
"dest": {
"index": "test"
}
}
Run Code Online (Sandbox Code Playgroud)
我得到的例外是 -
{
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "[MyOldDNSName:9200] not whitelisted in reindex.remote.whitelist"
}
],
"type" : "illegal_argument_exception",
"reason" : "[MyOldDNSName:9200] not whitelisted in reindex.remote.whitelist"
},
"status" : 400
}
Run Code Online (Sandbox Code Playgroud)
注意:我没有在新的弹性搜索服务器中创建任何索引。我是否必须使用旧模式创建它,然后尝试执行上述命令?