无法向Elasticsearch中的master发送加入请求,未知名称可写[org.Elasticsearch.clus



我们有一个长期运行的单节点ELK集群正在运行(master/data(。我决定添加额外的数据节点。然而,我在数据节点上得到以下错误

30.X.XXX}{172.30.X.XXX:9300}{ml.enabled=true}], reason [RemoteTransportException[[master][172.30.X.XXX:9300][internal:discovery/zen/join]]; 
nested: IllegalStateException[failure when sending a validation request to node]; 
nested: RemoteTransportException[[data1][172.30.X.XXX:9300][internal:discovery/zen/join/validate]]; 
nested: IllegalArgumentException[Unknown NamedWriteable [org.elasticsearch.cluster.metadata.MetaData$Custom][licenses]]; ]

以下是主数据节点和新数据节点上的配置文件

主节点:

cluster.name: my-application
node.name: master
node.master: true
node.data: true
path.data: /opt/elasticsearch
network.host: ["172.30.X.XX1","localhost"]
http.port: 9200
transport.tcp.port: 9300
discovery.zen.ping.unicast.hosts: ["172.30.X.XX1"]
discovery.zen.minimum_master_nodes: 1

Data1节点:

cluster.name: my-application
node.name: data1
node.master: false
node.data: true
path.data: /opt/elasticsearch
network.host: ["172.30.X.XX2","localhost"]
http.port: 9200
transport.tcp.port: 9300
discovery.zen.ping.unicast.hosts: ["172.30.X.XX1"]
discovery.zen.minimum_master_nodes: 1

尝试ping并检查9200和9300上从主节点到数据节点的telnet,反之亦然,它运行良好

我已经尝试从/var/lib/elasticsearch/notes/0中删除数据,并重新启动数据1,它不起作用

如果您尝试混合使用Elasticsearch的xpack/商业/非开源二进制文件和一些带有开源二进制文件的节点,就会发生这种情况。不幸的是,Elasticsearch现在试图"欺骗"你使用他们的非开源版本,这导致了许多意外的非开源安装。

一个简单的解决方案是在任何地方安装非oss版本,但您可能不想运行商业版本,因为您需要遵守商业许可证!

为了在所有节点上转换为开源许可证,您可以执行以下操作:

您可以在/etc/elasticsearch/aelasticsearch.yml中设置以下内容,然后重新启动所有节点以禁用一些商业功能:

xpack.security.enabled: false
xpack.ml.enabled: false

然后,您可以以滚动的方式将所有节点逐个更改为开源二进制文件。

另请参阅以下类似讨论:

  • https://discuss.elastic.co/t/elasticsearch-cluster-cant-join-new-node/126964
  • https://discuss.elastic.co/t/adding-a-new-node-on-a-different-subnet/125377/2-https://github.com/codelibs/elasticsearch-module/issues/3
  • https://discuss.elastic.co/t/transport-client-error-after-installing-x-pack-on-es-5-5-1/97021/4
  • https://discuss.elastic.co/t/bulk-indexing-with-x-pack-exception/92086/5

我也遇到了同样的错误。由于滚动升级,Elasticsearch有多个版本。升级所有节点并运行sudo systemctl daemon-reload后,错误得到修复。

java.lang.IllegalStateException: Message not fully read (response) for requestId [], handler [org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler/org.elasticsearch.transport.TransportService$4/[indices:data/read/search[phase/query]]:org.elasticsearch.action.search.SearchTransportService$ConnectionCountingHandler@7518541f/org.elasticsearch.action.search.SearchExecutionStatsCollector/org.elasticsearch.action.search.AbstractSearchAsyncAction$1@cd2eb6d], error [false]; resetting

最新更新