执行CronJobSchedulingExample时出现以下错误

时间:2017-12-20 12:58:21

标签: java apache ignite

从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)

1 个答案:

答案 0 :(得分:1)

您需要在项目类路径中包含ignite-schedule模块。检查它是否已添加到您的pom.xml中,或者如果您使用ignite.sh运行它, - 将ignite-schedule目录从libs/optional复制到libs