I have the following use case. In an oozie workflow, a map-reduce action generates a series of diagnostic counters. I want to have another java action following the map-reduce action. The java action basically does validation based on the counters from the map-reduce action and generate some notifications based on the validation conditions and results. The key thing for this idea to work is that the java action must be able to access all counters in the upstream map-reduce action, just like how oozie can use EL to access them in its workflow xml.
Right now I have no idea where to start for this. So, any pointer is very much appreciated.
update
For example, suppose I have a map-reduce action named foomr. In oozie workflow xml, you can use EL to access counters, e.g., ${hadoop:counters("foomr")[RECORDS][MAP_IN]}. Then, my question would be, how can I get the same counter inside a java action? Does oozie expose any API to access values that are accessible to EL as in a workflow xml?