yuvraj@ubuntu:~/Downloads/ElasticStack5.0/Alpha4/elasticsearch-5.0.0-alpha4$ bin/x-pack/croneval "0 0/1 * * * ?"
Validates and evaluates a cron expression
Non-option arguments:
expression
Option Description
------ -----------
-c, --count The number of future times this
expression will be triggered
(default: 10)
-h, --help show help
-s, --silent show minimal output
-v, --verbose show verbose output
ERROR: E is not a recognized option
old post, but using elasticsearch 5.4.0 this error seems to occur again.
Using command (from documentation) :
/usr/share/elasticsearch# bin/x-pack/croneval "0 0/1 * * * ?"
Validates and evaluates a cron expression
Non-option arguments:
expression
Option Description
------ -----------
-c, --count The number of future times this expression will be triggered
(default: 10)
-h, --help show help
-s, --silent show minimal output
-v, --verbose show verbose output
ERROR: E is not a recognized option
/usr/share/elasticsearch#
this works for me on a fresh installed 5.4.0 installation:
bin/x-pack/croneval "0 0/1 * * * ?"
Valid!
Now is [Wed, 17 May 2017 06:56:50]
Here are the next 10 times this cron expression will trigger:
1. Wed, 17 May 2017 08:57:00
...
Is the plugin as well as the croneval script updated?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.