Open MichaelXt opened 10 years ago
Can you show the cron expression you use?
Sure: "0 5,35 * * * ?" gives the error, but the "0 35 * * * ?" works fine
I have added a "comma test" in JDBC river 1.3.0.1 with your expression, it works fine.
I had the same issue. As a workaround I had used an array of cron expression as the schedule params support this.
Example:
"schedule": ["0 0 3 ? * *","0 0 7 ? * *","0 0 11 ? * *"]
Is the comma issue on Windows?
@jprante no. Its occuring in linux as well. sorry for the delayed response
Just confirming that I'm seeing the same issue with the latest elasticsearch-river-jdbc-1.4.0.8
"schedule": "0 1,16,31,46 * * * ? ", throws the error "schedule": "0 1/15 * * * ? ", works fine
Comma no longer works in schedule (cron syntax).
java.lang.IllegalArgumentException: invalid cron expression format: Unexpected end of expression at org.xbib.cron.CronExpression.buildExpression(CronExpression.java:287) at org.xbib.cron.CronExpression.(CronExpression.java:101)
at org.xbib.elasticsearch.plugin.feeder.AbstractFeeder.schedule(AbstractFeeder.java:177)
at org.xbib.elasticsearch.plugin.river.jdbc.JDBCRiver.start(JDBCRiver.java:94)
at org.elasticsearch.river.RiversService.createRiver(RiversService.java:148)