Hi Tom,
as you can see, the groups property only contains default. That's why at
restart the node is only in the default group.
Let me try to reproduce your scenario to see why the groups list is not
updated in the config file.
Regards
JB
On 11/01/2013 11:15 AM, Tom Leung wrote:
the content for " org.apache.karaf.cellar.groups.cfg " is as follows:
cat org.apache.karaf.cellar.groups.cfg
groups = default
default.config.whitelist.inbound = *
default.config.whitelist.outbound = *
default.config.blacklist.inbound = org.apache.felix.fileinstall*, \
org.apache.karaf.cellar*, \
org.apache.karaf.management, \
org.apache.karaf.shell, \
org.ops4j.pax.logging, \
org.ops4j.pax.web
default.config.blacklist.outbound = org.apache.felix.fileinstall*, \
org.apache.karaf.cellar*, \
org.apache.karaf.management, \
org.apache.karaf.shell, \
org.ops4j.pax.logging, \
org.ops4j.pax.web
default.config.sync = true
default.features.whitelist.inbound = *
default.features.whitelist.outbound = *
default.features.blacklist.inbound = config,management,hazelcast,cellar*
default.features.blacklist.outbound = config,management,hazelcast,cellar*
default.features.sync = true
default.features.repositories.sync = true
default.bundle.whitelist.inbound = *
default.bundle.whitelist.outbound = *
default.bundle.blacklist.inbound = none
default.bundle.blacklist.outbound = none
default.bundle.sync = true
default.obr.urls.sync = true
default.obr.bundles.sync = true
-----Original Message-----
From: Jean-Baptiste Onofré [mailto:[email protected]]
Sent: Friday, November 01, 2013 5:23 PM
To: [email protected]
Subject: Re: Cellar don't save the newly created group settings
Hi Tom,
can you check the content of etc/org.apache.karaf.cellar.groups.cfg (and
especially the groups of the node) ?
Regards
JB
On 11/01/2013 09:28 AM, Tom Leung wrote:
I have a question about cellar cluster:group features as follows:
1. install a new fresh copy of Karaf on a MacOS X machine
2. type the following commands:
features:addUrl
mvn:org.apache.karaf.cellar/apache-karaf-cellar/2.3.2/xml/features
features:install cellar
After that I pretend a new cluster group:
cluster:group-create test01
cluster:group-join test01
*karaf*@root> cluster:group-join test01
Group Members
* [test01 ] [192.168.28.163:5701* ]
* [default ] [192.168.28.163:5701* ]
*karaf*@root> cluster:group-list
Group Members
* [test01 ] [192.168.28.163:5701* ]
* [default ] [192.168.28.163:5701* ]
*karaf*@root>
*karaf*@root>
*karaf*@root>
*karaf*@root> shutdown
Then, I quit Karaf and restart it again.
Type the following command:
cluster:group-list
*karaf*@root> cluster:group-list
Group Members
* [default ] [192.168.28.163:5701* ]
*karaf*@root>
*karaf*@root> cluster:group-list
Group Members
* [default ] [192.168.28.163:5701* ]
*karaf*@root>
The new group test01 is not shown again and find the following errors
by running "display" command:
2013-11-01 16:18:18,194 | INFO | rint Extender: 3 |
system | dardLoggerFactory$StandardLogger 50
| 54 - com.hazelcast - 2.6.0 | [192.168.28.163]:5701 [cellar]
| Copyright
(C) 2008-2013 Hazelcast.com
2013-11-01 16:18:18,205 | INFO | rint Extender: 3 |
LifecycleServiceImpl | dardLoggerFactory$StandardLogger 50
| 54 - com.hazelcast - 2.6.0 | [192.168.28.163]:5701 [cellar]
Address[192.168.28.163]:5701 is STARTING
2013-11-01 16:18:21,049 | INFO | ar.ServiceThread |
MulticastJoiner | dardLoggerFactory$StandardLogger 50
| 54 - com.hazelcast - 2.6.0 | [192.168.28.163]:5701 [cellar]
Members [1] {
Member [192.168.28.163]:5701 this
}
2013-11-01 16:18:21,090 | INFO | rint Extender: 3 |
LifecycleServiceImpl | dardLoggerFactory$StandardLogger 50
| 54 - com.hazelcast - 2.6.0 | [192.168.28.163]:5701 [cellar]
Address[192.168.28.163]:5701 is STARTED
2013-11-01 16:18:21,104 | INFO | ar.ServiceThread |
PartitionManager | dardLoggerFactory$StandardLogger 50
| 54 - com.hazelcast - 2.6.0 | [192.168.28.163]:5701 [cellar]
Initializing cluster partition table first arrangement...
2013-11-01 16:18:21,331 | ERROR | pool-10-thread-1 |
ConfigurationEventHandler | config.ConfigurationEventHandler 91
| 59 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed
| to
update local configuration
java.lang.NullPointerException
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
urationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
urationEventHandler.java:36)[59:org.apache.karaf.cellar.config:2.3.2]
at Proxy4caff14c_fca1_42b4_8376_3ad62394f58b.handle(Unknown
Source)[:]
at
org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatch
Task.java:57)[55:org.apache.karaf.cellar.core:2.3.2]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j
ava:1145)[:1.7.0_40]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:615)[:1.7.0_40]
at java.lang.Thread.run(Thread.java:724)[:1.7.0_40]
2013-11-01 16:18:21,331 | ERROR | pool-10-thread-2 |
ConfigurationEventHandler | config.ConfigurationEventHandler 91
| 59 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed
| to
update local configuration
java.lang.NullPointerException
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
urationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
urationEventHandler.java:36)[59:org.apache.karaf.cellar.config:2.3.2]
at Proxy4caff14c_fca1_42b4_8376_3ad62394f58b.handle(Unknown
Source)[:]
at
org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatch
Task.java:57)[55:org.apache.karaf.cellar.core:2.3.2]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j
ava:1145)[:1.7.0_40]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:615)[:1.7.0_40]
at java.lang.Thread.run(Thread.java:724)[:1.7.0_40]
2013-11-01 16:18:21,334 | ERROR | pool-10-thread-3 |
ConfigurationEventHandler | config.ConfigurationEventHandler 91
| 59 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed
| to
update local configuration
java.lang.NullPointerException
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
urationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
urationEventHandler.java:36)[59:org.apache.karaf.cellar.config:2.3.2]
at Proxy4caff14c_fca1_42b4_8376_3ad62394f58b.handle(Unknown
Source)[:]
at
org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatch
Task.java:57)[55:org.apache.karaf.cellar.core:2.3.2]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j
ava:1145)[:1.7.0_40]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:615)[:1.7.0_40]
at java.lang.Thread.run(Thread.java:724)[:1.7.0_40]
2013-11-01 16:18:21,335 | ERROR | pool-10-thread-4 |
ConfigurationEventHandler | config.ConfigurationEventHandler 91
| 59 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed
| to
update local configuration
java.lang.NullPointerException
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
urationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
urationEventHandler.java:36)[59:org.apache.karaf.cellar.config:2.3.2]
at Proxy4caff14c_fca1_42b4_8376_3ad62394f58b.handle(Unknown
Source)[:]
at
org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatch
Task.java:57)[55:org.apache.karaf.cellar.core:2.3.2]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j
ava:1145)[:1.7.0_40]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:615)[:1.7.0_40]
at java.lang.Thread.run(Thread.java:724)[:1.7.0_40]
2013-11-01 16:18:21,337 | ERROR | pool-10-thread-2 |
ConfigurationEventHandler | config.ConfigurationEventHandler 91
| 59 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed
| to
update local configuration
java.lang.NullPointerException
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
urationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
urationEventHandler.java:36)[59:org.apache.karaf.cellar.config:2.3.2]
at Proxy4caff14c_fca1_42b4_8376_3ad62394f58b.handle(Unknown
Source)[:]
at
org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatch
Task.java:57)[55:org.apache.karaf.cellar.core:2.3.2]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j
ava:1145)[:1.7.0_40]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:615)[:1.7.0_40]
at java.lang.Thread.run(Thread.java:724)[:1.7.0_40]
2013-11-01 16:18:21,339 | ERROR | pool-10-thread-3 |
ConfigurationEventHandler | config.ConfigurationEventHandler 91
| 59 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed
| to
update local configuration
java.lang.NullPointerException
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
urationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
urationEventHandler.java:36)[59:org.apache.karaf.cellar.config:2.3.2]
at Proxy4caff14c_fca1_42b4_8376_3ad62394f58b.handle(Unknown
Source)[:]
at
org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatch
Task.java:57)[55:org.apache.karaf.cellar.core:2.3.2]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j
ava:1145)[:1.7.0_40]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:615)[:1.7.0_40]
at java.lang.Thread.run(Thread.java:724)[:1.7.0_40]
*karaf*@root>
Should cellar save all the group configuration I have created before?
Best Rgds,
Tom
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com