我坚持使用elasticsearch/kibana 5.6.3。我需要启用跨集群搜索。我能够让它在6.8.6版本中工作,但后来发现我现在被旧版本卡住了(因为我们必须用旧版本的fluentd升级几十台发送数据的服务器)。文档中说要从控制台启用群集设置:
PUT _cluster/settings
{
"persistent": {
"cluster": {
"remote": {
"cluster-two": {
"seeds": ["localhost:9301"]
}
}
}
}
}这将生成以下错误消息:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "persistent setting [cluster.remote.cluster-two.seeds.0], not dynamically updateable"
}
],
"type": "illegal_argument_exception",
"reason": "persistent setting [cluster.remote.cluster-two.seeds.0], not dynamically updateable"
},
"status": 400
}我的弹性搜索配置文件:
cluster.name: cluster
node.name: node-1
http.port: 9200
transport.tcp.port: 9300远程集群:
cluster.name: remote-cluster
node.name: node-1
http.port: 9201
transport.tcp.port: 9301我假设我的错误意味着我需要在配置文件中直接更新这个属性。我在elasticsearch.yml中尝试了几个选项,但没有成功。你知道我需要做什么更新才能让跨集群搜索正常工作吗?
不工作:
cluster.remote.cluster_two.seeds: ["127.0.0.1:9301"]
cluster.remote.cluster_two.seeds: 127.0.0.1:9301
cluster:
remote:
cluster_two:
seeds: 127.0.0.1:9301发布于 2020-03-11 21:34:14
呃..。我想我找到了here,但需要测试它是否正常工作。它们对yaml配置有不同的名称:
cluster.remote.cluster_two.seeds:
至少现在服务器启动了。我也可以在控制台中进行设置而不会出错:
PUT _cluster/settings
{
"persistent": {
"search": {
"remote": {
"cluster_two": {
"seeds": ["localhost:9301"]
}
}
}
}
}https://stackoverflow.com/questions/60636943
复制相似问题