gpt4 book ai didi

java - 执行 CronJobSchedulingExample 时出现以下错误

转载 作者:行者123 更新时间:2023-12-02 11:50:30 25 4
gpt4 key购买 nike

运行来自 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com