3

I am using Oozie coordinators and the web console for tracking them. In order to find my job I usually use a filter

user=XXX;status=running

I know that this is also valid for the command line "-filter " (see here)

However in some cases I would like to use the condition status(not equal)killed

Is this possible? what is the corresponding syntax?

Shaharg
  • 971
  • 1
  • 11
  • 26

2 Answers2

1

am not aware of such kind of operation {not equals} function is defined in any of the supported Oozie. Instaed of Not Equal KILLED... you can try EQUAL RUNNING/SUSPEND/COMPLETE/PREP ... as both will give the same ans :)

Deb
  • 473
  • 3
  • 13
  • Is there an OR operator? I tried "status=running/killed" but it didn't work – Shaharg Aug 06 '15 at 06:55
  • 1
    no there is only single option status= – Deb Aug 06 '15 at 09:18
  • 3
    You can do multiple statuses if you separate them with an escaped semi-colon. http://stackoverflow.com/questions/17364567/specifying-multiple-filter-criteria-through-oozie-command-line `oozie jobs -jobtype coordinator -filter status=KILLED\;status=RUNNING` – deusxmach1na Sep 13 '16 at 17:06
0

Had the same problem, there's no Not-Equals operator.

I am using user=XXX;status=RUNNING;status=RUNNINGWITHERROR;status=PREP

Yossi Vainshtein
  • 3,845
  • 4
  • 23
  • 39