Apache Camel功能在集群之后卸载:在karaf地窖中同步

时间:2018-06-07 09:54:35

标签: apache-camel hazelcast apache-karaf karaf

我开始测试apache karaf地窖,今天我首先安装Apache karaf 4.2.0,然后安装cellar 4.1.1(截至目前没有自定义功能)。

我只更改了组名和TCP IP的以下属性

hazelcast.xml
org.apache.karaf.cellar.groups.cfg
org.apache.karaf.cellar.node.cfg

重新启动集群后:node-list显示为group memeber。

在node1上我安装了camel-core软件包,我希望在进行集群同步后,它会自动安装在第二个节点上,而不是安装它从node1卸载。

2018-06-07T09:51:15,308 | INFO  | pipe-cluster:sync | Activator                        |  -  -  | Camel activator stopping
2018-06-07T09:51:15,312 | INFO  | pipe-cluster:sync | Activator                        |  -  -  | Camel activator stopped
2018-06-07T09:51:15,316 | INFO  | pipe-cluster:sync | CommandExtension                 | 33 - org.apache.karaf.shell.core - 4.2.0 | Unregistering commands
for bundle org.apache.camel.karaf.camel-karaf-commands/2.19.5
2018-06-07T09:51:15,335 | ERROR | pipe-cluster:sync | Felix                            |  -  -  | Bundle org.apache.felix.framework [0] EventDispatcher: Er
ror during dispatch. (java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator)
java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator
        at org.apache.karaf.specs.activator.Activator.unregister(Activator.java:134) ~[?:?]
        at org.apache.karaf.specs.activator.Activator.bundleChanged(Activator.java:98) ~[?:?]
        at org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915) ~[?:?]
        at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834) [?:?]
        at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516) [?:?]
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) [?:?]
        at org.apache.felix.framework.Felix.uninstallBundle(Felix.java:2805) [?:?]
        at org.apache.felix.framework.BundleImpl.uninstall(BundleImpl.java:1055) [?:?]
        at org.apache.karaf.cellar.bundle.BundleSynchronizer.pull(BundleSynchronizer.java:194) [48:org.apache.karaf.cellar.bundle:4.1.1]
        at org.apache.karaf.cellar.bundle.BundleSynchronizer.sync(BundleSynchronizer.java:90) [48:org.apache.karaf.cellar.bundle:4.1.1]
        at org.apache.karaf.cellar.shell.SyncCommand.doSync(SyncCommand.java:130) [54:org.apache.karaf.cellar.shell:4.1.1]
        at org.apache.karaf.cellar.shell.SyncCommand.doExecute(SyncCommand.java:86) [54:org.apache.karaf.cellar.shell:4.1.1]
        at org.apache.karaf.cellar.core.shell.CellarCommandSupport.execute(CellarCommandSupport.java:62) [50:org.apache.karaf.cellar.core:4.1.1]
        at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) [33:org.apache.karaf.shell.core:4.2.0]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) [33:org.apache.karaf.shell.core:4.2.0]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) [33:org.apache.karaf.shell.core:4.2.0]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) [33:org.apache.karaf.shell.core:4.2.0]
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) [33:org.apache.karaf.shell.core:4.2.0]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) [33:org.apache.karaf.shell.core:4.2.0]
        at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) [33:org.apache.karaf.shell.core:4.2.0]
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) [33:org.apache.karaf.shell.core:4.2.0]
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) [33:org.apache.karaf.shell.core:4.2.0]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
        at java.lang.Thread.run(Thread.java:748) [?:?]
2018-06-07T09:51:15,341 | ERROR | FelixDispatchQueue | framework                        | 0 - org.apache.felix.framework - 5.6.10 | FrameworkEvent ERROR -
org.apache.felix.framework
java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator
        at org.apache.karaf.specs.activator.Activator.unregister(Activator.java:134) ~[?:?]
        at org.apache.karaf.specs.activator.Activator.bundleChanged(Activator.java:98) ~[?:?]
        at org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915) ~[?:?]
        at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834) ~[?:?]
        at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516) ~[?:?]
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) ~[?:?]
        at org.apache.felix.framework.Felix.uninstallBundle(Felix.java:2805) ~[?:?]
        at org.apache.felix.framework.BundleImpl.uninstall(BundleImpl.java:1055) ~[?:?]
        at org.apache.karaf.cellar.bundle.BundleSynchronizer.pull(BundleSynchronizer.java:194) ~[?:?]
        at org.apache.karaf.cellar.bundle.BundleSynchronizer.sync(BundleSynchronizer.java:90) ~[?:?]
        at org.apache.karaf.cellar.shell.SyncCommand.doSync(SyncCommand.java:130) ~[?:?]
        at org.apache.karaf.cellar.shell.SyncCommand.doExecute(SyncCommand.java:86) ~[?:?]
        at org.apache.karaf.cellar.core.shell.CellarCommandSupport.execute(CellarCommandSupport.java:62) ~[?:?]
        at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) ~[?:?]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) ~[?:?]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) ~[?:?]
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) ~[?:?]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) ~[?:?]
        at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) ~[?:?]
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:?]
        at java.lang.Thread.run(Thread.java:748) [?:?]
2018-06-07T09:51:15,366 | ERROR | pipe-cluster:sync | Felix                            |  -  -  | Bundle org.apache.felix.framework [0] EventDispatcher: Er
ror during dispatch. (java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator)
java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator
        at org.apache.karaf.specs.activator.Activator.unregister(Activator.java:134) ~[?:?]
        at org.apache.karaf.specs.activator.Activator.bundleChanged(Activator.java:98) ~[?:?]
        at org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915) ~[?:?]
        at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834) [?:?]
        at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516) [?:?]
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) [?:?]
        at org.apache.felix.framework.Felix.uninstallBundle(Felix.java:2805) [?:?]
        at org.apache.felix.framework.BundleImpl.uninstall(BundleImpl.java:1055) [?:?]
        at org.apache.karaf.cellar.bundle.BundleSynchronizer.pull(BundleSynchronizer.java:194) [48:org.apache.karaf.cellar.bundle:4.1.1]
        at org.apache.karaf.cellar.bundle.BundleSynchronizer.sync(BundleSynchronizer.java:90) [48:org.apache.karaf.cellar.bundle:4.1.1]
        at org.apache.karaf.cellar.shell.SyncCommand.doSync(SyncCommand.java:130) [54:org.apache.karaf.cellar.shell:4.1.1]
        at org.apache.karaf.cellar.shell.SyncCommand.doExecute(SyncCommand.java:86) [54:org.apache.karaf.cellar.shell:4.1.1]
        at org.apache.karaf.cellar.core.shell.CellarCommandSupport.execute(CellarCommandSupport.java:62) [50:org.apache.karaf.cellar.core:4.1.1]
        at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) [33:org.apache.karaf.shell.core:4.2.0]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) [33:org.apache.karaf.shell.core:4.2.0]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) [33:org.apache.karaf.shell.core:4.2.0]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) [33:org.apache.karaf.shell.core:4.2.0]
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) [33:org.apache.karaf.shell.core:4.2.0]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) [33:org.apache.karaf.shell.core:4.2.0]
        at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) [33:org.apache.karaf.shell.core:4.2.0]
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) [33:org.apache.karaf.shell.core:4.2.0]
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) [33:org.apache.karaf.shell.core:4.2.0]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
        at java.lang.Thread.run(Thread.java:748) [?:?]
2018-06-07T09:51:15,368 | ERROR | FelixDispatchQueue | framework                        | 0 - org.apache.felix.framework - 5.6.10 | FrameworkEvent ERROR -
org.apache.felix.framework
java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator
        at org.apache.karaf.specs.activator.Activator.unregister(Activator.java:134) ~[?:?]
        at org.apache.karaf.specs.activator.Activator.bundleChanged(Activator.java:98) ~[?:?]
        at org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915) ~[?:?]
        at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834) ~[?:?]
        at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516) ~[?:?]
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) ~[?:?]
        at org.apache.felix.framework.Felix.uninstallBundle(Felix.java:2805) ~[?:?]
        at org.apache.felix.framework.BundleImpl.uninstall(BundleImpl.java:1055) ~[?:?]
        at org.apache.karaf.cellar.bundle.BundleSynchronizer.pull(BundleSynchronizer.java:194) ~[?:?]
        at org.apache.karaf.cellar.bundle.BundleSynchronizer.sync(BundleSynchronizer.java:90) ~[?:?]
        at org.apache.karaf.cellar.shell.SyncCommand.doSync(SyncCommand.java:130) ~[?:?]
        at org.apache.karaf.cellar.shell.SyncCommand.doExecute(SyncCommand.java:86) ~[?:?]
        at org.apache.karaf.cellar.core.shell.CellarCommandSupport.execute(CellarCommandSupport.java:62) ~[?:?]
        at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) ~[?:?]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) ~[?:?]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) ~[?:?]
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) ~[?:?]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) ~[?:?]
        at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) ~[?:?]
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:?]
        at java.lang.Thread.run(Thread.java:748) [?:?]
2018-06-07T09:51:15,641 | INFO  | features-3-thread-1 | FeaturesServiceImpl              | 10 - org.apache.karaf.features.core - 4.2.0 | No deployment chan
ge.
2018-06-07T09:51:15,645 | INFO  | features-3-thread-1 | FeaturesServiceImpl              | 10 - org.apache.karaf.features.core - 4.2.0 | Done.

0 个答案:

没有答案