You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by mshah <ms...@gmail.com> on 2018/09/13 16:08:48 UTC
Ignite Visor cache not active
Hi,
What is the correct way to start visor for the ingnite instance started from
spring boot application.
I started the ignite node from the spring boot application as below
ApplicationContext context=
SpringApplication.run(Application.class, args);
Ignite ignite=IgniteSpring.start("ignite-config.xml",
context);
Grid is up and running. I opened up command prompt and connected visor with
grid with following command.
open -cpath=Workspace/ms.claim/ignite-config.xml
Visor is connected with grid "claimgrid"
Some useful commands:
+--------------------------------------------+
| Type 'top' | to see full topology. |
| Type 'node' | to see node statistics. |
| Type 'cache' | to see cache statistics. |
| Type 'tasks' | to see tasks statistics. |
| Type 'config' | to see node configuration. |
+--------------------------------------------+
Type 'help' to get help.
+-----------------------------------------------------------------------------------+
| Status | Connected
|
| Ignite instance name | claimgrid
|
| Config path |
e:/Maine_Go_Live_Prep/Workspace/ms.claim/ignite-config.xml |
| Uptime | 00:00:00
|
+-----------------------------------------------------------------------------------+
But when I look for cache command it shows me following message
[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
I tried with top -activate command. Its throwing following exception
visor> top -activate
class org.apache.ignite.cluster.ClusterGroupEmptyException: Cluster group is
empty.
at
org.apache.ignite.internal.util.IgniteUtils$6.apply(IgniteUtils.java:847)
at
org.apache.ignite.internal.util.IgniteUtils$6.apply(IgniteUtils.java:845)
at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:985)
at
org.apache.ignite.internal.util.future.IgniteFutureImpl.convertException(IgniteFutureImpl.java:168)
at
org.apache.ignite.internal.util.future.IgniteFutureImpl.get(IgniteFutureImpl.java:137)
at
org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor$4.apply(GridClusterStateProcessor.java:1033)
at
org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor$4.apply(GridClusterStateProcessor.java:1030)
at
org.apache.ignite.internal.util.future.IgniteFutureImpl$InternalFutureListener.apply(IgniteFutureImpl.java:215)
at
org.apache.ignite.internal.util.future.IgniteFutureImpl$InternalFutureListener.apply(IgniteFutureImpl.java:179)
at
org.apache.ignite.internal.util.future.GridFutureAdapter.notifyListener(GridFutureAdapter.java:383)
at
org.apache.ignite.internal.util.future.GridFutureAdapter.listen(GridFutureAdapter.java:353)
at
org.apache.ignite.internal.util.future.IgniteFutureImpl.listen(IgniteFutureImpl.java:71)
at
org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor.sendComputeChangeGlobalState(GridClusterStateProcessor.java:1030)
at
org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor.changeGlobalState0(GridClusterStateProcessor.java:826)
at
org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor.changeGlobalState(GridClusterStateProcessor.java:748)
at
org.apache.ignite.internal.cluster.IgniteClusterImpl.active(IgniteClusterImpl.java:312)
at
org.apache.ignite.internal.IgniteKernal.active(IgniteKernal.java:3399)
at
org.apache.ignite.visor.commands.top.VisorTopologyCommand$$anonfun$top$1.apply$mcV$sp(VisorTopologyCommand.scala:152)
at scala.util.control.Breaks.breakable(Breaks.scala:38)
at
org.apache.ignite.visor.commands.top.VisorTopologyCommand.top(VisorTopologyCommand.scala:145)
at
org.apache.ignite.visor.commands.top.VisorTopologyCommand$$anonfun$6.apply(VisorTopologyCommand.scala:431)
at
org.apache.ignite.visor.commands.top.VisorTopologyCommand$$anonfun$6.apply(VisorTopologyCommand.scala:431)
at
org.apache.ignite.visor.commands.VisorConsole.mainLoop(VisorConsole.scala:242)
at
org.apache.ignite.visor.commands.VisorConsole$.delayedEndpoint$org$apache$ignite$visor$commands$VisorConsole$1(VisorConsole.scala:354)
at
org.apache.ignite.visor.commands.VisorConsole$delayedInit$body.apply(VisorConsole.scala:343)
at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
at
scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.collection.immutable.List.foreach(List.scala:381)
at
scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
at scala.App$class.main(App.scala:76)
at
org.apache.ignite.visor.commands.VisorConsole$.main(VisorConsole.scala:343)
at
org.apache.ignite.visor.commands.VisorConsole.main(VisorConsole.scala)
Caused by: class
org.apache.ignite.internal.cluster.ClusterGroupEmptyCheckedException:
Cluster group is empty.
at
org.apache.ignite.internal.util.IgniteUtils.emptyTopologyException(IgniteUtils.java:4754)
at
org.apache.ignite.internal.processors.closure.GridClosureProcessor.runAsync(GridClosureProcessor.java:240)
at
org.apache.ignite.internal.processors.closure.GridClosureProcessor.runAsync(GridClosureProcessor.java:216)
at
org.apache.ignite.internal.IgniteComputeImpl.runAsync0(IgniteComputeImpl.java:704)
at
org.apache.ignite.internal.IgniteComputeImpl.runAsync(IgniteComputeImpl.java:689)
at
org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor.sendComputeChangeGlobalState(GridClusterStateProcessor.java:1028)
... 21 more
Thanks in advance
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Ignite Visor cache not active
Posted by ezhuravlev <e....@gmail.com>.
Hi,
Can you show the topology which Visor prints?
Evgenii
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/