|
Hi,
I installed feature mvn:org.apache.karaf.cellar/apache-karaf-cellar/2.2.3/xml/features and changed default configuration according my requirements to use tcpip joiner (see snippets below): In org.apache.karaf.cellar.instance.cfg multicastEnabled=false tcpIpEnabled=true tcpIpMembers= <comma_separated_ip_list> In hazelcast.xml <multicast enabled="false"> <multicast-group>224.2.2.3</multicast-group> <multicast-port>54327</multicast-port> </multicast> <tcp-ip enabled="true"> <interface>127.0.0.1</interface> </tcp-ip> But when I start instances tcpip joiner does not start and I see in the log something like this: INFO | .1.ServiceThread | MulticastJoiner | - - | /<my_ip_address>:5701 [cellar] Same was with the version 2.2.2 and I was able to use tcpip joiner only after changing source code in class HazelcastConfigurationManager. Is it some bug or I miss something? |
|
Hi,
sorry again, we also have an issue around that: https://issues.apache.org/jira/browse/KARAF-1297 and https://issues.apache.org/jira/browse/KARAF-1248 It should be fixed in Cellar 2.2.4. Regards JB On 04/02/2012 02:56 PM, gasius wrote: > Hi, > > I installed feature > /mvn:org.apache.karaf.cellar/apache-karaf-cellar/2.2.3/xml/features/ and > changed default configuration according my requirements to use tcpip joiner > (see snippets below): > > In *org.apache.karaf.cellar.instance.cfg* > multicastEnabled=false > tcpIpEnabled=true > tcpIpMembers=<comma_separated_ip_list> > > In *hazelcast.xml* > <multicast enabled="false"> > <multicast-group>224.2.2.3</multicast-group> > <multicast-port>54327</multicast-port> > </multicast> > <tcp-ip enabled="true"> > <interface>127.0.0.1</interface> > </tcp-ip> > > But when I start instances tcpip joiner does not start and I see in the log > something like this: > /INFO | .1.ServiceThread | MulticastJoiner | - - | > /<my_ip_address>:5701 [cellar]/ > > Same was with the version 2.2.2 and I was able to use tcpip joiner only > after changing source code in class HazelcastConfigurationManager. Is it > some bug or I miss something? > > -- > View this message in context: http://karaf.922171.n3.nabble.com/Cellar-tcpIpEnabled-does-not-work-tp3877611p3877611.html > Sent from the Karaf - User mailing list archive at Nabble.com. -- Jean-Baptiste Onofré [hidden email] http://blog.nanthrax.net Talend - http://www.talend.com |
|
Hi JB,
thank you for the reply. I fixed it manually and now tcp/ip joiner works fine. But now I'm facing another problem. I want to use bundles synchronization so in groups cfg I added following lines (my group is named "applications"): applications.bundle.whitelist.inbound = * applications.bundle.whitelist.outbound = * applications.bundle.sync = true Now I'm getting error from Hazelcast (posting only part of stacktrace): java.lang.ClassNotFoundException: org.apache.karaf.cellar.bundle.BundleState at java.net.URLClassLoader$1.run(URLClassLoader.java:202)[:1.6.0_18] at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_18] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)[:1.6.0_18] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)[:1.6.0_18] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)[:1.6.0_18] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)[:1.6.0_18] at java.lang.Class.forName0(Native Method)[:1.6.0_18] at java.lang.Class.forName(Class.java:247)[:1.6.0_18] at com.hazelcast.nio.AbstractSerializer.loadClass(AbstractSerializer.java:83) Tested this with both versions - my modyfied (based on version 2.2.3) and original Cellar 2.2.3 (just to verify that this is not because of my changes). Do you know anything about this problem? Does bundle synchronization works in Cellar at all? |
|
Hi,
yeah bundle sync should work. Did you try using the cluster:bundle-* commands ? FYI, I fixed the Hazelcast network configuration on trunk and cellar-2.2.x branch. Regards JB On 04/16/2012 01:13 PM, gasius wrote: > Hi JB, > > thank you for the reply. I fixed it manually and now tcp/ip joiner works > fine. But now I'm facing another problem. I want to use bundles > synchronization so in groups cfg I added following lines (my group is named > "applications"): > > /applications.bundle.whitelist.inbound = * > applications.bundle.whitelist.outbound = * > applications.bundle.sync = true/ > > Now I'm getting error from Hazelcast (posting only part of stacktrace): > /java.lang.ClassNotFoundException: > org.apache.karaf.cellar.bundle.BundleState/ > /at java.net.URLClassLoader$1.run(URLClassLoader.java:202)[:1.6.0_18] > at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_18] > at java.net.URLClassLoader.findClass(URLClassLoader.java:190)[:1.6.0_18] > at java.lang.ClassLoader.loadClass(ClassLoader.java:307)[:1.6.0_18] > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)[:1.6.0_18] > at java.lang.ClassLoader.loadClass(ClassLoader.java:248)[:1.6.0_18] > at java.lang.Class.forName0(Native Method)[:1.6.0_18] > at java.lang.Class.forName(Class.java:247)[:1.6.0_18] > at > com.hazelcast.nio.AbstractSerializer.loadClass(AbstractSerializer.java:83)/ > > Tested this with both versions - my modyfied (based on version 2.2.3) and > original Cellar 2.2.3 (just to verify that this is not because of my > changes). > > Do you know anything about this problem? Does bundle synchronization works > in Cellar at all? > > -- > View this message in context: http://karaf.922171.n3.nabble.com/Cellar-tcpIpEnabled-does-not-work-tp3877611p3914117.html > Sent from the Karaf - User mailing list archive at Nabble.com. -- Jean-Baptiste Onofré [hidden email] http://blog.nanthrax.net Talend - http://www.talend.com |
|
Hi,
just tried to remove bundle with the command: cluster:bundle-uninstall applications my.bundle.name 1.0.0 It removed bundle on the instance on which I run command but on the second member of my cluster group it did not. The only what I can see in the karaf.log is such warning: WARN | pool-9-thread-47 | EventDispatchTask | lar.core.event.EventDispatchTask 88 | 50 - org.apache.karaf.cellar.core - 2.2.3 | Failed to retrieve handler for event class org.apache.karaf.cellar.bundle.RemoteBundleEvent |
|
In reply to this post by jbonofre
Hi,
so maybe I use incorrect bundle synch configuration or problem is because of ServiceMix v 4.4.1? Because I install Cellar into ServiceMix v 4.4.1 (tried various assemblies - default, full, minimal). Also I tried various Cellar versions 2.2.3, 2.2.4-SNAPSHOT, 3.0.0-SNAPSHOT but with all got error: java.lang.ClassNotFoundException: org.apache.karaf.cellar.bundle.BundleState I changed default synch configuration from: default.bundle.whitelist.inbound=none default.bundle.whitelist.outbound=none default.bundle.sync=false To default.bundle.whitelist.inbound=* default.bundle.whitelist.outbound=* default.bundle.sync=true |
|
Hi,
The ClassNotFoundException is identified and I'm going to fix it. It will be in the next Cellar 2.2.4-SNAPSHOT (tomorrow morning). Regards JB On 05/04/2012 09:19 AM, gasius wrote: > Hi, > > so maybe I use incorrect bundle synch configuration or problem is because of > ServiceMix v 4.4.1? Because I install Cellar into ServiceMix v 4.4.1 (tried > various assemblies - default, full, minimal). Also I tried various Cellar > versions 2.2.3, 2.2.4-SNAPSHOT, 3.0.0-SNAPSHOT but with all got error: > > /java.lang.ClassNotFoundException: > org.apache.karaf.cellar.bundle.BundleState/ > > I changed default synch configuration from: > > /default.bundle.whitelist.inbound=none > default.bundle.whitelist.outbound=none > default.bundle.sync=false/ > > To > > /default.bundle.whitelist.inbound=* > default.bundle.whitelist.outbound=* > default.bundle.sync=true/ > > -- > View this message in context: http://karaf.922171.n3.nabble.com/Cellar-tcpIpEnabled-does-not-work-tp3877611p3961406.html > Sent from the Karaf - User mailing list archive at Nabble.com. -- Jean-Baptiste Onofré [hidden email] http://blog.nanthrax.net Talend - http://www.talend.com |
|
In reply to this post by gasius
FYI:
https://issues.apache.org/jira/browse/KARAF-1435 Regards JB On 05/04/2012 09:19 AM, gasius wrote: > Hi, > > so maybe I use incorrect bundle synch configuration or problem is because of > ServiceMix v 4.4.1? Because I install Cellar into ServiceMix v 4.4.1 (tried > various assemblies - default, full, minimal). Also I tried various Cellar > versions 2.2.3, 2.2.4-SNAPSHOT, 3.0.0-SNAPSHOT but with all got error: > > /java.lang.ClassNotFoundException: > org.apache.karaf.cellar.bundle.BundleState/ > > I changed default synch configuration from: > > /default.bundle.whitelist.inbound=none > default.bundle.whitelist.outbound=none > default.bundle.sync=false/ > > To > > /default.bundle.whitelist.inbound=* > default.bundle.whitelist.outbound=* > default.bundle.sync=true/ > > -- > View this message in context: http://karaf.922171.n3.nabble.com/Cellar-tcpIpEnabled-does-not-work-tp3877611p3961406.html > Sent from the Karaf - User mailing list archive at Nabble.com. -- Jean-Baptiste Onofré [hidden email] http://blog.nanthrax.net Talend - http://www.talend.com |
| Powered by Nabble | Edit this page |
