Oozie命令行过滤器

问题描述 投票:0回答:1

oozie job -info $ 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

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

请针对此用例,建议如何解决此问题或任何其他替代方法。

oozie oozie-coordinator oozie-workflow
1个回答
0
投票

-filter'nominaltime> 2019-11-01T01:00Z'

© www.soinside.com 2019 - 2024. All rights reserved.