项目场景:
学习课程时候遇到的问题
问题描述
[savedobjects-service] Unable to connect to Elasticsearch
使用Elasticsearch-head也显示集群无状态
原因分析:
node-1节点没有加入到master节点
解决方案:
修改
elasticsearch.yml配置
node.name: node-1network.host: 0.0.0.0
cluster.initial_master_nodes: ["node-1"]
- http.cors.enabled: true
http.cors.allow-origin: “*”
http.cors.allow-headers: Authorization,X-Requested-With,Content- Length,Content-Type
实际应用:


在这里插入图片描述

本文详细阐述了在学习过程中遇到的Elasticsearch连接问题,涉及node-1未加入master节点的诊断,以及通过修改elasticsearch.yml解决步骤,包括设置node.name、network.host和initial_master_nodes。还展示了如何启用跨域请求以支持实际应用。
1580

被折叠的 条评论
为什么被折叠?



