0

oozie 工作信息 $coordinator

该命令为您提供属于协调员的工作流的详细信息,打印他们的 ID、状态、创建时间和标称时间。

我正在尝试打印在特定日期之后执行的 oozie 协调器的工作流程。

根据他们的文档,

-filter <arg>         <key><comparator><value>[;<key><comparator><value>]*
                            (All Coordinator actions satisfying the filters will be retrieved).
                            key: status or nominal time
                            comparator: =, !=, <, <=, >, >=. = is used as OR and others as AND
                            status: values are valid status like SUCCEEDED, KILLED etc. Only = and != apply for status.
                            nominaltime: time of format yyyy-MM-dd'T'HH:mm'Z'

由此可以理解,状态键仅支持“=”或“!=”,而标称时间键支持所有比较器。

但是当我尝试使用它时,我遇到了错误。

[hadoop@xx ~]$ oozie job -info $coord -filter status nominalTime>2018-09-01'T'08:00'Z'
Error: E0421 : E0421: Invalid job filter [nominalTime], filter should be of format <key><comparator><value> pairs

如果我输入“=”或“!=”,则相同的命令有效,但如果您使用其他比较器,则会引发错误。(>,<,>=,<=)

请建议如何解决此用例或此用例的任何其他替代方案。

4

1 回答 1

0

-filter '名义时间>2019-11-01T01:00Z'

于 2019-11-04T06:38:49.837 回答