问题描述
我试图通过命令行来搜索某些特定的oozie作业。
我使用以下语法来查看同一个元素:
$ oozie jobs -filter status = RUNNING; status = KILLED
然而,该命令仅返回正在运行的作业而不是杀死作业。需要帮助解决为什么多个条件是没有工作(我期待的结果为运行和杀死作业进行ORed中提到的)
我在这里错过了一些明显的东西吗?请推荐
版本:Oozie客户端版本:2.3.2-cdh3u5
I am trying to to search for some specific oozie jobs through command line.
I am using the following syntax for the same $ oozie jobs -filter status=RUNNING ;status=KILLED
However the command only returns jobs which are RUNNING and not the KILLED jobs.Need assistance in figuring out why the multiple criteria is not working ( I am expecting the results for RUNNING and KILLED jobs to be ORed as mentioned in the official oozie documentation)
Am I missing something obvious here? Please suggest
Version : Oozie client build version: 2.3.2-cdh3u5
推荐答案
你必须跳过分号,因为它在到达oozie之前被解释。像这样运行命令:
You have to escape the semicolon, since it's being interpreted before reaching oozie. Run the command like this:
$ oozie jobs -filter status=RUNNING\;status=KILLED
这篇关于通过Oozie命令行指定多个过滤条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!