📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 6.8-8.9

简而言之,当 Elasticsearch 由于缺少字段或字段不正确而无法解析调度时,就会出现此错误。这种情况通常出现在 Watcher 中,这是一个用于基于 Elasticsearch 数据进行告警和通知的插件。该错误表明 cron 表达式或间隔调度中缺少调度类型字段。要解决此问题,请确保在 Watcher 配置中正确定义了调度字段。检查 cron 表达式或间隔调度的语法和结构,确保所有必需字段都存在且格式正确。

日志上下文 #

日志 “could not parse schedule. expected a schedule type field; but no fields were found” 的类名是 ScheduleRegistry.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:

        token
    );
}
}
if (schedule == null) {
    throw new ElasticsearchParseException("could not parse schedule. expected a schedule type field; but no fields were found");
}
return schedule;
}

public Schedule parse(String context, String type, XContentParser parser) throws IOException {