You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Max Barrios <sp...@gmail.com> on 2019/03/03 23:33:24 UTC

Failed to load bean in application context [beanName=cassandraAdminDataSource, igniteConfig=org.springframework.context.support.GenericApplicationContext

I am getting the above error when I attempt to activate a baseline Ignite
cluster (

I have stopped and started the nodes in the cluster. I have attempted to
deactivate the cluster and reactivate it.

/home/ubuntu/apache-ignite-fabric-2.6.0-bin$ ./bin/control.sh --baseline
Control utility [ver. 2.6.0#20180710-sha1:669feacc]
2018 Copyright(C) Apache Software Foundation
User: ubuntu
--------------------------------------------------------------------------------
Cluster state: inactive
Current topology version: 1

Baseline nodes:
    ConsistentID=1de6f1ea-8991-4dff-8f8f-7ded9960bc33, STATE=ONLINE
    ConsistentID=71893185-c471-40bd-8516-764dad910719, STATE=ONLINE
    ConsistentID=7e56ac72-a2ce-4bb4-885c-91e1b0230d79, STATE=ONLINE
--------------------------------------------------------------------------------
Number of baseline nodes: 3

Other nodes not found.
/home/ubuntu/apache-ignite-fabric-2.6.0-bin$ ./bin/control.sh --state
Control utility [ver. 2.6.0#20180710-sha1:669feacc]
2018 Copyright(C) Apache Software Foundation
User: ubuntu
--------------------------------------------------------------------------------
Cluster is inactive
/home/ubuntu/apache-ignite-fabric-2.6.0-bin$ ./bin/control.sh --deactivate
Control utility [ver. 2.6.0#20180710-sha1:669feacc]
2018 Copyright(C) Apache Software Foundation
User: ubuntu
--------------------------------------------------------------------------------
Warning: the command will deactivate a cluster.
Press 'y' to continue . . . y
Cluster deactivated
/home/ubuntu/apache-ignite-fabric-2.6.0-bin$ ./bin/control.sh --activate
Control utility [ver. 2.6.0#20180710-sha1:669feacc]
2018 Copyright(C) Apache Software Foundation
User: ubuntu
--------------------------------------------------------------------------------
Failed to activate cluster.
Error: Failed to activate cluster
suppressed:
Failed to load bean in application context
[beanName=cassandraAdminDataSource,
igniteConfig=org.springframework.context.support.GenericApplicationContext@55f3ddb1:
startup date [Sun Mar 03 23:23:06 GMT 2019]; root of context
hierarchy]


Nothing works. I cannot get activate the existing baseline topology. I
cannot get rid of the baseline topology to create another one. And
activation only throws the exception and I haven't found any solution to
fix it.

How do I:
1) Address this exception?
2) Force a drop of the current baseline so I can recreate the topology?

Re: Failed to load bean in application context [beanName=cassandraAdminDataSource, igniteConfig=org.springframework.context.support.GenericApplicationContext

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

I am guessing that configured caches contain reference to Cassandra data
store, for which you indeed do not have required Spring bean in your Spring
context.

Since you can't change cache configuration once it is there, the
recommendation is to add dummy Spring bean with such name and proper type,
even if it is not connected anywhere.

The alternative is complete data loss, at least on affected caches.

Regards,
-- 
Ilya Kasnacheev


пн, 4 мар. 2019 г. в 02:33, Max Barrios <sp...@gmail.com>:

> I am getting the above error when I attempt to activate a baseline Ignite
> cluster (
>
> I have stopped and started the nodes in the cluster. I have attempted to
> deactivate the cluster and reactivate it.
>
> /home/ubuntu/apache-ignite-fabric-2.6.0-bin$ ./bin/control.sh --baseline
> Control utility [ver. 2.6.0#20180710-sha1:669feacc]
> 2018 Copyright(C) Apache Software Foundation
> User: ubuntu
> --------------------------------------------------------------------------------
> Cluster state: inactive
> Current topology version: 1
>
> Baseline nodes:
>     ConsistentID=1de6f1ea-8991-4dff-8f8f-7ded9960bc33, STATE=ONLINE
>     ConsistentID=71893185-c471-40bd-8516-764dad910719, STATE=ONLINE
>     ConsistentID=7e56ac72-a2ce-4bb4-885c-91e1b0230d79, STATE=ONLINE
> --------------------------------------------------------------------------------
> Number of baseline nodes: 3
>
> Other nodes not found.
> /home/ubuntu/apache-ignite-fabric-2.6.0-bin$ ./bin/control.sh --state
> Control utility [ver. 2.6.0#20180710-sha1:669feacc]
> 2018 Copyright(C) Apache Software Foundation
> User: ubuntu
> --------------------------------------------------------------------------------
> Cluster is inactive
> /home/ubuntu/apache-ignite-fabric-2.6.0-bin$ ./bin/control.sh --deactivate
> Control utility [ver. 2.6.0#20180710-sha1:669feacc]
> 2018 Copyright(C) Apache Software Foundation
> User: ubuntu
> --------------------------------------------------------------------------------
> Warning: the command will deactivate a cluster.
> Press 'y' to continue . . . y
> Cluster deactivated
> /home/ubuntu/apache-ignite-fabric-2.6.0-bin$ ./bin/control.sh --activate
> Control utility [ver. 2.6.0#20180710-sha1:669feacc]
> 2018 Copyright(C) Apache Software Foundation
> User: ubuntu
> --------------------------------------------------------------------------------
> Failed to activate cluster.
> Error: Failed to activate cluster
> suppressed:
> Failed to load bean in application context [beanName=cassandraAdminDataSource, igniteConfig=org.springframework.context.support.GenericApplicationContext@55f3ddb1: startup date [Sun Mar 03 23:23:06 GMT 2019]; root of context hierarchy]
>
>
> Nothing works. I cannot get activate the existing baseline topology. I
> cannot get rid of the baseline topology to create another one. And
> activation only throws the exception and I haven't found any solution to
> fix it.
>
> How do I:
> 1) Address this exception?
> 2) Force a drop of the current baseline so I can recreate the topology?
>