运行来自 github 的 CronJobSchedulingExample 示例时出现以下错误 https://github.com/apache/ignite/blob/master/examples/src/main/java-lgpl/org/apache/ignite/examples/misc/schedule/ComputeScheduleExample.java
Exception in thread "main" class org.apache.ignite.IgniteException: Current Ignite configuration does not support schedule functionality (consider adding ignite-schedule module to classpath).
at org.apache.ignite.internal.processors.schedule.IgniteNoopScheduleProcessor.processorException(IgniteNoopScheduleProcessor.java:50)
at org.apache.ignite.internal.processors.schedule.IgniteNoopScheduleProcessor.schedule(IgniteNoopScheduleProcessor.java:43)
at org.apache.ignite.internal.IgniteSchedulerImpl.scheduleLocal(IgniteSchedulerImpl.java:123)
at com.mstorm.ignition.CronJobSchedulingExample.main(CronJobSchedulingExample.java:38)
最佳答案
您需要在项目类路径中有 ignite-schedule
模块。检查它是否已添加到您的 pom.xml 中,或者,如果您使用 ignite.sh
运行它,请从 libs/optional< 复制
到 ignite-schedule
目录libs
。
关于java - 执行 CronJobSchedulingExample 时出现以下错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47906630/