即使是不成熟的尝试,也胜于胎死腹中的策略。

ec数据节点问题

Elasticsearch | 作者 unkonws | 发布于2018年06月24日 | 阅读数:2428

有两个节点一个是node1在物理机机上,一个是node2在虚拟机上 位什么我在node1上的数据会自动的跑到node2的虚拟机上 ,我在虚拟机上没有导入过数据 但是程序下的目录data文件夹不断的变大,我在虚拟机上的node2添加了数据 ,然后我关闭了虚拟机 我在去物理机上看还是看到我在虚拟机上添加的数据 ,我想是物理机node1 的数据不能给他跑到node2上面去,node2的数据不能给他跑到node1上面去 查询还是能查询到两个电脑节点的数据 我的配置文件是 
node1:
cluster.name: my-application
node.name: node1

network.host: 192.168.0.104
http.port: 9200

http.cors.enabled: true
http.cors.allow-origin: "*"

node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["192.168.0.104","192.168.203.130"]
 
node2:
cluster.name: my-application
node.name: node2

network.host: 192.168.203.130
http.port: 9200

http.cors.enabled: true
http.cors.allow-origin: "*"

node.master: false
node.data: true
discovery.zen.ping.unicast.hosts: ["192.168.0.104","192.168.203.130"]
 

node1.png


ela.png


node2.png


node2_data.png

 
 
 
已邀请:

要回复问题请先登录注册