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(ConfigurationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]

          at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(ConfigurationEventHandler.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(EventDispatchTask.java:57)[55:org.apache.karaf.cellar.core:2.3.2]

          at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: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(ConfigurationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]

          at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(ConfigurationEventHandler.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(EventDispatchTask.java:57)[55:org.apache.karaf.cellar.core:2.3.2]

          at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: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(ConfigurationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]

          at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(ConfigurationEventHandler.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(EventDispatchTask.java:57)[55:org.apache.karaf.cellar.core:2.3.2]

          at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: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(ConfigurationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]

          at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(ConfigurationEventHandler.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(EventDispatchTask.java:57)[55:org.apache.karaf.cellar.core:2.3.2]

          at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: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(ConfigurationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]

          at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(ConfigurationEventHandler.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(EventDispatchTask.java:57)[55:org.apache.karaf.cellar.core:2.3.2]

          at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: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(ConfigurationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]

          at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(ConfigurationEventHandler.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(EventDispatchTask.java:57)[55:org.apache.karaf.cellar.core:2.3.2]

          at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: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

Reply via email to