gpt4 book ai didi

azure - 将节点 azure 添加到 Elasticsearch

转载 作者:行者123 更新时间:2023-12-03 01:59:16 25 4
gpt4 key购买 nike

我有两台专用服务器(host1、host2),并且在我的两台专用服务器中安装了 elastic 2.1

在我的配置中我有

主机1

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"]

在我的主机2
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"]

它正在工作

但是当我想在我的架构上添加我的云 azure 时
我的 azure 云中有两个 IP 地址(本地 ip,公共(public) 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

最佳答案

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 '^]'

表示node-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 并重试。

关于azure - 将节点 azure 添加到 Elasticsearch ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34168693/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com