Specifying multiple filter criteria through Oozie command line

隐身守侯 提交于 2019-12-10 13:26:47

问题


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


回答1:


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



回答2:


Quoting the string as @tokland mentioned worked for me, escaping didn't.

$ oozie jobs -jobtype bundle -filter "status=RUNNING;status=RUNNINGWITHERROR;user=myuser"


来源:https://stackoverflow.com/questions/17364567/specifying-multiple-filter-criteria-through-oozie-command-line

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!