I'm trying to get Cellar working on some AWS instances.

*TL;DR version: *

Karaf 3.0.4 + Cellar 3.0.3 + AWS hazelcast autodiscovery doesn't seem to
work. The hazelcast bundle it installs is missing the class
com.hazelcast.cluster.impl.TcpIpJoinerOverAWS.

*Longer version:*

I've got a fresh install of Karaf 3.0.4. I've configured hazelcast.xml based
on the example  here
<http://karaf.apache.org/manual/cellar/latest-3/user-guide/hazelcast.html> 
. I've run:

karaf@root()> feature:repo-add
mvn:org.apache.karaf.cellar/apache-karaf-cellar/3.0.3/xml/features
karaf@root()> feature:install cellar

And I get the following in the logs: 

org.osgi.service.blueprint.container.ComponentDefinitionException:
org.osgi.service.blueprint.container.ComponentDefinitionException: Error
when instantiating bean hazelcast of class com.hazelcast.core.Hazelcast
        at
org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:309)[15:org.apache.aries.blueprint.core:1.4.3]
... many lines of stack trace ...
Caused by: java.lang.ClassNotFoundException:
com.hazelcast.cluster.impl.TcpIpJoinerOverAWS not found by com.hazelcast
[66]
        at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
 

On closer inspection (of data/cache), it's installed hazelcast 3.4.2 as a
feature as a transitive dependency of cellar, and the hazelcast jar it
installs does not include com.hazelcast.cluster.impl.TcpIpJoinerOverAWS.
However, if I download hazelcast 3.4.2 manually elsewhere, it does include
that class.

(I've also tried a couple of other combinations of Karaf 3.0.x and Cellar
3.0.y, with the same results)


Is there something I'm doing wrong here, or does AWS discovery just not work
out of the box?

Alternatively, can I get it to use a different source for the hazelcast
distribution, so that I can use one that includes the class in question.

Cheers



--
View this message in context: 
http://karaf.922171.n3.nabble.com/TcpIpJoinerOverAWS-not-found-by-com-hazelcast-when-discovering-cellar-nodes-on-AWS-tp4042232.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to