我刚刚使用非常基本的配置尝试了最新版本的Apache Ignite(2.1),但它不起作用。
以下这行不起作用(直到2.0.0):
Ignite ignite = Ignition.start(new IgniteConfiguration());
有人知道我做错了什么吗?我知道这是一个太基本的配置,使用示例配置文件时我得到相同的结果。
下面的堆栈:
java.lang.AbstractMethodError: org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.registerCache(Ljava/lang/String;Lorg/apache/ignite/internal/processors/cache/GridCacheContext;Lorg/apache/ignite/configuration/CacheConfiguration;)V
at org.apache.ignite.internal.processors.query.GridQueryProcessor.registerCache0(GridQueryProcessor.java:1276)
at org.apache.ignite.internal.processors.query.GridQueryProcessor.onCacheStart0(GridQueryProcessor.java:756)
at org.apache.ignite.internal.processors.query.GridQueryProcessor.onCacheStart(GridQueryProcessor.java:817)
at org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCache(GridCacheProcessor.java:1265)
at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onKernalStart(GridCacheProcessor.java:898)
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1013)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1895)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1647)
at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1075)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:595)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:519)
at org.apache.ignite.Ignition.start(Ignition.java:322)
at com.test.Test.go(Test.java:9)
at com.test.Test.main(Test.java:15)
[16:29:10] Cancelled rebalancing from all nodes [topology=null]
juil. 31, 2017 4:29:10 PM org.apache.ignite.logger.java.JavaLogger error
GRAVE: Failed to stop component (ignoring): GridProcessorAdapter []
java.lang.NoSuchMethodError: org.apache.ignite.internal.processors.cache.GridCacheSharedContext.database()Lorg/apache/ignite/internal/processors/cache/persistence/IgniteCacheDatabaseSharedManager;
at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.stop(IgniteH2Indexing.java:2067)
at org.apache.ignite.internal.processors.query.GridQueryProcessor.stop(GridQueryProcessor.java:269)
at org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:2180)
at org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:2047)
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1052)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1895)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1647)
at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1075)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:595)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:519)
at org.apache.ignite.Ignition.start(Ignition.java:322)
at com.test.Test.go(Test.java:9)
at com.test.Test.main(Test.java:15)
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.ignite.internal.processors.cache.GridCacheSharedContext.database()Lorg/apache/ignite/internal/processors/cache/persistence/IgniteCacheDatabaseSharedManager;
at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.stop(IgniteH2Indexing.java:2067)
at org.apache.ignite.internal.processors.query.GridQueryProcessor.stop(GridQueryProcessor.java:269)
at org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:2180)
at org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:2047)
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1052)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1895)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1647)
at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1075)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:595)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:519)
at org.apache.ignite.Ignition.start(Ignition.java:322)
at com.test.Test.go(Test.java:9)
at com.test.Test.main(Test.java:15)
提前感谢任何可以帮助我的人
祝你好运