Xml Can';t使用WSL将第二个节点连接到ApacheIgnite集群

Xml Can';t使用WSL将第二个节点连接到ApacheIgnite集群,xml,hadoop,windows-subsystem-for-linux,ignite,Xml,Hadoop,Windows Subsystem For Linux,Ignite,因此,我尝试为两个节点设置一个Ignite集群,并使用此default-config.xml: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/bea

因此,我尝试为两个节点设置一个Ignite集群,并使用此default-config.xml:

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans
                        http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
    <property name="workDirectory" value="/mnt/e/apache-ignite"/>
    <property name="discoverySpi">
        <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
            <property name="ipFinder">
                <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder">
                    <property name="addresses">
                        <list>
                            <value>node1:47500..47509</value>
                            <value>node2:47500..47509</value>
                        </list>
                    </property>
                </bean>
            </property>
        </bean>
    </property>
    <property name="communicationSpi">
        <bean class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
            <property name="localPort" value="47100"/>
        </bean>
    </property>
    <property name="fileSystemConfiguration">
        <list>
            <bean class="org.apache.ignite.configuration.FileSystemConfiguration">
                <property name="name" value="igfs"/>
                <property name="ipcEndpointConfiguration">
                    <bean class="org.apache.ignite.igfs.IgfsIpcEndpointConfiguration">
                        <property name="type" value="TCP"/>
                        <property name="host" value="0.0.0.0"/>
                        <property name="port" value="10500"/>
                    </bean>
                </property>
                <property name="secondaryFileSystem">
                    <bean class="org.apache.ignite.hadoop.fs.IgniteHadoopIgfsSecondaryFileSystem">
                        <property name="fileSystemFactory">
                            <bean class="org.apache.ignite.hadoop.fs.CachingHadoopFileSystemFactory">
                                <property name="uri" value="hdfs://node1:9000/"/>
                                <property name="configPaths">
                                    <list>
                                        <value>/mnt/e/hadoop/etc/hadoop/core-site.xml</value>
                                    </list>
                                </property>
                            </bean>
                        </property>
                    </bean>
                </property>
            </bean>
        </list>
    </property>
</bean>
我目前正在使用最新版本的Ignite(2.8.1)和两台Windows机器(在wsl上运行Ignite)。 我不认为防火墙会阻止发现端口或通信端口,因为在其中一个节点启动时使用telnet不会出现任何问题

administrator@node1:~$ telnet <node2-ip> 47100
Trying <node2-ip>...
Connected to <node2-ip>.
Escape character is '^]'.
0[GOi#^CConnection closed by foreign host.
administrator@node1:~$ telnet <node2-ip> 47500
Trying <node2-ip>...
Connected to <node2-ip>.
Escape character is '^]'.
Connection closed by foreign host.
administrator@node1:~$telnet 47100
尝试
连接到。
转义字符为“^]”。
0[GOi#^C连接已被外部主机关闭。
administrator@node1:~$telnet 47500
尝试
连接到。
转义字符为“^]”。
连接被外部主机关闭。
我在这里有点迷路了。也许我的配置有问题

编辑


在使用powershell的第二个工作进程上运行
ignite.bat
时,节点将添加到拓扑中,不会出现任何问题。

尝试在两个节点的查找和通信SPI中设置正确的外部
localAddress

administrator@node1:~$ telnet <node2-ip> 47100
Trying <node2-ip>...
Connected to <node2-ip>.
Escape character is '^]'.
0[GOi#^CConnection closed by foreign host.
administrator@node1:~$ telnet <node2-ip> 47500
Trying <node2-ip>...
Connected to <node2-ip>.
Escape character is '^]'.
Connection closed by foreign host.

否则,98e6971f节点似乎只会确认其本地主机地址。

您正在从node1到node1进行telnet。如果从node1到node2进行telnet,会发生什么?糟糕,我编辑了实际的ip地址,并将其全部更改为node1。但我实际上是从1号节点到2号节点的telnet。我将编辑我的问题。感谢您的评论。看起来node1能够建立到node2的连接,但同时node2无法ping node1。您能否检查是否可以在节点之间建立双向连接?是的,可以从节点2 ping到节点1。此外,使用powershell时,一切正常。但在我的情况下,从WSL内部运行这两个节点会更好。