目前,我有两个地窖节点,配置相同(几乎)。它们之间的唯一区别是,在一个节点上,我已经停止了生产者,而在另一个节点上,我已经停止了消费者。
为简便起见,生产者节点为节点A,消费者节点为节点B。默认情况下,我已将同步策略设置为禁用,并且两个节点都在同一组workers
中>
default.bundle.sync=disabled
default.config.sync=disabled
default.feature.sync=disabled
default.obr.urls.sync=disabled
default.balanced.servlet.sync=disabled
网上论坛工作人员的同步策略是从默认网上论坛继承的,因此都被禁用了。
我已在Node A
上安装了一个捆绑软件(通过复制到deploy目录)。在节点A上成功启动捆绑包后,我运行:
> cluster:sync --group workers -b node
[此节点的使用者为OFF,因此拉取不会影响它]
在节点B上,我的操作与以下操作相同:(不确定,这是否是正确的方法,因为我目前没有工件存储库)
> cluster:sync --group workers -b node
有了这个,我反复得到以下错误
INFO [pool-11-thread-1] [192.168.99.1]:5702 [cellar] [3.9.1] [192.168.99.1]:5702 is STARTED
10:31:29.613 INFO [pool-11-thread-1] Registering commands for bundle org.apache.karaf.cellar.core/4.1.2
10:31:29.880 INFO [pool-11-thread-1] Registering commands for bundle org.apache.karaf.cellar.bundle/4.1.2
10:31:29.914 INFO [pool-11-thread-1] Registering commands for bundle org.apache.karaf.cellar.features/4.1.2
10:31:29.929 WARN [pool-7-thread-4] Can't uninstall org.apache.felix.framework/5.6.10
org.osgi.framework.BundleException: Cannot uninstall the system bundle.
at org.apache.felix.framework.Felix.uninstall(Felix.java:1097) ~[?:?]
at org.apache.karaf.cellar.bundle.BundleSynchronizer.pull(BundleSynchronizer.java:194) [63:org.apache.karaf.cellar.bundle:4.1.2]
at org.apache.karaf.cellar.bundle.BundleSynchronizer.sync(BundleSynchronizer.java:103) [63:org.apache.karaf.cellar.bundle:4.1.2]
at org.apache.karaf.cellar.bundle.BundleSynchronizer.init(BundleSynchronizer.java:67) [63:org.apache.karaf.cellar.bundle:4.1.2]
at org.apache.karaf.cellar.bundle.internal.osgi.Activator.doStart(Activator.java:109) [63:org.apache.karaf.cellar.bundle:4.1.2]
at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:242) [63:org.apache.karaf.cellar.bundle:4.1.2]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
at java.lang.Thread.run(Thread.java:745) [?:?]
我什至不知道为什么试图卸载系统捆绑包。
Karaf版本:4.2.0
地窖版本:4.1.2