项目场景:
学习课程时候遇到的问题
问题描述
[savedobjects-service] Unable to connect to Elasticsearch
使用Elasticsearch-head也显示集群无状态
原因分析:
node-1节点没有加入到master节点
解决方案:
修改
elasticsearch.yml
配置
node.name: node-1
network.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
实际应用:
在这里插入图片描述