我想使用作为环境变量传递的参数中定义的 cron 表达式来调度处理器。但是,无论我如何定义这些环境变量,它们最终都会带有额外的双引号,从而导致错误。 我尝试了几种方法,例如:
set ALERT_MAIL_CRON=0\ 8\ *\ *\ *\ ?
set ALERT_MAIL_CRON=0 8 * * * ?
set ALERT_MAIL_CRON="0 8 * * * ?"
Nifi版本:2.0.0-M1
操作系统:Windows 11
错误信息:
Scheduling Period '#{ALERT_MAIL_CRON}' is not a valid cron expression: For input string: ""0" '"0' in cron expression ""0 8 * * * ?""