我的集群中有一个datanode和server节点。
open
击中了default-config.xml
。然后我发出“缓存”命令以查看缓存,但出现错误: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.
基于上述消息,我发出了---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
答案 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>