Ignite visor命令因ClusterGroupEmptyCheckedException而出错:群集组为空

时间:2018-10-14 14:25:14

标签: cluster-computing ignite

我的集群中有一个datanode和server节点。

  1. 我正在尝试使用ignitevisor命令连接到正在运行的节点。 一个
  2. 我用点火器cmd上的open击中了default-config.xml
  3. 然后我发出“缓存”命令以查看缓存,但出现错误:o

    [WARN ] Can not perform the operation because the cluster is inactive.
    [WARN ] Note, that the cluster is considered inactive by default if Ignite Persistent Store is used to let all the nodes join the cluster.
    [WARN ] To activate the cluster execute following command: top -activate.
    
  4. 基于上述消息,我发出了---top命令,并得到以下错误:

    visor> cache
    [WARN ] Can not perform the operation because the cluster is inactive.
    [WARN ] Note, that the cluster is considered inactive by default if Ignite Persistent Store is used to let all the nodes join the cluster.
    [WARN ] To activate the cluster execute following command: top -activate.
    visor> top -activate
    class org.apache.ignite.cluster.ClusterGroupEmptyException: Cluster group is empty.
    

注意:我也尝试使用control.sh激活集群。使用 以下control.sh --activate命令是输出,表明它成功激活了集群。

但是,如果我尝试重新打开ignitevisor cmd,则其cache命令会再次出现错误,并显示相同的日志

visor> cache
[WARN ] Can not perform the operation because the cluster is inactive.
[WARN ] Note, that the cluster is considered inactive by default if Ignite Persistent Store is used to let all the nodes join the cluster.
[WARN ] To activate the cluster execute following command: top -activate.

请提出我的所有修复建议或可能缺少的任何配置。要使ignitevisor命令正常工作,请使用ignite 2.6.0

1 个答案:

答案 0 :(得分:0)

1)检查您运行的服务器与遮阳板版本相同

2)尝试如下修改$ IGNITE_HOME / config / 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="discoverySpi">
            <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                <!-- Setting up IP finder for this cluster -->
                <property name="ipFinder">
                    <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
                        <property name="addresses">
                            <list>
                                //change it
                                <value>127.0.0.1:47500..47510</value>
                            </list>
                        </property>
                    </bean>
                </property>
            </bean>
        </property>
    </bean>
</beans>

代替默认值:

<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">
    <!--
        Alter configuration below as needed.
    -->
    <bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration"/>
</beans>