我有两个专用服务器(host1,host2),我在两个专用服务器上安装了弹性2.1
在我的配置中我有
host1
cluster.name: myclus
node.name: node-1
network.host: ip address 1
http.port: 9200
discovery.zen.ping.unicast.hosts: ["127.0.0.1","ip address 2"]
在我的host2中
cluster.name: myclus
node.name: node-2
network.host: ip address 2
http.port: 9200
discovery.zen.ping.unicast.hosts: ["127.0.0.1","ip address 1"]
它正在运作
但是当我想在我的架构中添加我的云天蓝色时 我的天蓝云中有两个IP地址(本地IP,公共IP) 我的配置是
cluster.name: myclus
node.name: node-3
network.bind_host: 0.0.0.0
http.port: 9200
discovery.zen.ping.unicast.hosts: ["127.0.0.1","ip address 1","ip address 2"]
我有这个错误
[2015-12-09 00:19:55,617][WARN ][bootstrap ] unable to install syscall filter: syscall filtering not supported for OS: 'Windows Server 2012 R2'
[2015-12-09 00:19:56,133][INFO ][node ] [node-cloud] version[2.1.0], pid[3516], build[72cd1f1/2015-11-18T22:40:03Z]
[2015-12-09 00:19:56,133][INFO ][node ] [node-cloud] initializing ...
[2015-12-09 00:19:56,461][INFO ][plugins ] [node-cloud] loaded [], sites [head]
[2015-12-09 00:19:56,524][INFO ][env ] [node-cloud] using [1] data paths, mounts [[(C:)]], net usable_space [115.8gb], net total_space [126.6gb], spins? [unknown], types [NTFS]
[2015-12-09 00:20:01,133][INFO ][node ] [node-cloud] initialized
[2015-12-09 00:20:01,133][INFO ][node ] [node-cloud] starting ...
[2015-12-09 00:20:01,664][INFO ][transport ] [node-cloud] publish_address {127.0.0.1:9300}, bound_addresses {[::]:9300}
[2015-12-09 00:20:01,696][INFO ][discovery ] [node-cloud] proveille/WuNr5mY9RVO6XsRWtkcYdQ
[2015-12-09 00:20:05,085][INFO ][discovery.zen ] [node-cloud] failed to send join request to master [{node-1}{cxzF7IYWSCCY2E58wKX_Ow}{ip adress 1}{ip adress 1:9300}], reason [RemoteTransportException[[node-1][ip adress 1:9300][internal:discovery/zen/join]]; nested: ConnectTransportException[[node-cloud][127.0.0.1:9300] connect_timeout[30s]]; nested: NotSerializableExceptionWrapper[Connexion refusée: /127.0.0.1:9300]; ]
[2015-12-09 00:20:08,327][INFO ][discovery.zen ] [node-cloud] failed to send join request to master [{node-1}{cxzF7IYWSCCY2E58wKX_Ow}{ip adress 1}{ip adress 1:9300}], reason [RemoteTransportException[[node-1][ip adress 1:9300][internal:discovery/zen/join]]; nested: ConnectTransportException[[node-cloud][127.0.0.1:9300] connect_timeout[30s]]; nested: NotSerializableExceptionWrapper[Connexion refusée: /127.0.0.1:9300]; ]
[2015-12-09 00:20:11,547][INFO ][discovery.zen ] [node-cloud] failed to send join request to master [{node-1}{cxzF7IYWSCCY2E58wKX_Ow}{ip adress 1}{ip adress 1:9300}], reason [RemoteTransportException[[node-1][ip adress 1:9300][internal:discovery/zen/join]]; nested: ConnectTransportException[[node-cloud][127.0.0.1:9300] connect_timeout[30s]]; nested: NotSerializableExceptionWrapper[Connexion refusée: /127.0.0.1:9300]; ]
[2015-12-09 00:20:14,761][INFO ][discovery.zen ] [node-cloud] failed to send join request to master [{node-1}{cxzF7IYWSCCY2E58wKX_Ow}{ip adress 1}{ip adress 1:9300}], reason [RemoteTransportException[[node-1][ip adress 1:9300][internal:discovery/zen/join]]; nested: ConnectTransportException[[node-cloud][127.0.0.1:9300] connect_timeout[30s]]; nested: NotSerializableExceptionWrapper[Connexion refusée: /127.0.0.1:9300]; ]
[2015-12-09 00:20:17,979][INFO ][discovery.zen ] [node-cloud] failed to send join request to master [{node-1}{cxzF7IYWSCCY2E58wKX_Ow}{ip adress 1}{ip adress 1:9300}], reason [RemoteTransportException[[node-1][ip adress 1:9300][internal:discovery/zen/join]]; nested: ConnectTransportException[[node-cloud][127.0.0.1:9300] connect_timeout[30s]]; nested: NotSerializableExceptionWrapper[Connexion refusée: /127.0.0.1:9300]; ]
[2015-12-09 00:20:21,208][INFO ][discovery.zen ] [node-cloud] failed to send join request to master [{node-1}{cxzF7IYWSCCY2E58wKX_Ow}{ip adress 1}{ip adress 1:9300}], reason [RemoteTransportException[[node-1][ip adress 1:9300][internal:discovery/zen/join]]; nested: ConnectTransportException[[node-cloud][127.0.0.1:9300] connect_timeout[30s]]; nested: NotSerializableExceptionWrapper[Connexion refusée: /127.0.0.1:9300]; ]
[2015-12-09 00:20:24,433][INFO ][discovery.zen ] [node-cloud] failed to send join request to master [{node-1}{cxzF7IYWSCCY2E58wKX_Ow}{ip adress 1}{ip adress 1:9300}], reason [RemoteTransportException[[node-1][ip adress 1:9300][internal:discovery/zen/join]]; nested: ConnectTransportException[[node-cloud][127.0.0.1:9300] connect_timeout[30s]]; nested: NotSerializableExceptionWrapper[Connexion refusée: /127.0.0.1:9300]; ]
[2015-12-09 00:20:25,343][INFO ][node ] [node-cloud] stopping ...
[2015-12-09 00:20:25,389][INFO ][node ] [node-cloud] stopped
[2015-12-09 00:20:25,389][INFO ][node ] [node-cloud] closing ...
[2015-12-09 00:20:25,405][INFO ][node ] [node-cloud] closed
答案 0 :(得分:1)
failed to send join request to master [{node-1}{cxzF7IYWSCCY2E58wKX_Ow}{ip adress 1}{ip adress 1:9300}],
reason [RemoteTransportException[[node-1][ip adress 1:9300][internal:discovery/zen/join]];
nested: ConnectTransportException[[node-cloud][127.0.0.1:9300] connect_timeout[30s]];
显示node-1无法与node-cloud通信,原因可能是node-3服务器上的9300端口未暴露。您可以使用以下语句对其进行测试:
telnet node-3-ip 9300
如果终端显示:
Trying node-3-ip...
Connected to node-3-ip.
Escape character is '^]'
表示节点3服务器上的9300端口已公开,但如果终端显示:
Trying node-3-ip...
telnet: connect to address node-3-ip Connection refused
telnet: Unable to connect to remote host
表示9300端口未暴露。在这种情况下,登录到node-3服务器并修改iptables:
vi /etc/sysconfig/iptables
添加以下声明:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9300 -j ACCEPT
并重启iptables:
service iptables restart
最终重新启动elasticsearch并重试。