[
https://issues.apache.org/jira/browse/OOZIE-3248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16468830#comment-16468830
]
Peter Cseh edited comment on OOZIE-3248 at 5/9/18 1:22 PM:
-----------------------------------------------------------
The problem is that the properties format parsing is quite generous and rarely
throws exceptions. It usually parses something that is sometimes not correct.
See the mail on users@ [a couple days
ago|http://mail-archives.apache.org/mod_mbox/oozie-user/201805.mbox/%3CCA%2BCA-8sNqgdDWe0CEvvDZME5wE%3DmX81%3D6r-r7Z0fP0r0jJ1g-Q%40mail.gmail.com%3E]
I'd rather add an option to the <capture-output> tag. By default is should be
properties but one could define <Capture-output format=json> or somethign
similar in the xml
was (Author: gezapeti):
The problem is that the properties format parsing is quite generous and rarely
throws exceptions. It usually parses something that is sometimes not correct.
See the mail on users@ [a couple days
ago|http://mail-archives.apache.org/mod_mbox/oozie-user/201805.mbox/%3CCA%2BCA-8sNqgdDWe0CEvvDZME5wE%3DmX81%3D6r-r7Z0fP0r0jJ1g-Q%40mail.gmail.com%3E]
> Capture output in JSON format
> -----------------------------
>
> Key: OOZIE-3248
> URL: https://issues.apache.org/jira/browse/OOZIE-3248
> Project: Oozie
> Issue Type: New Feature
> Components: action
> Affects Versions: 5.0.0
> Reporter: Andras Piros
> Priority: Major
>
> Today the user can specify to capture output of Oozie actions, and reuse that
> in EL expressions in consecutive actions of the same workflow.
> As per [*Oozie workflow functional
> specification*|https://oozie.apache.org/docs/5.0.0/WorkflowFunctionalSpec.html]:
> {quote}
> The capture-output element can be used to propagate values back into Oozie
> context, which can then be accessed via EL-functions. This needs to be
> written out as a java properties format file. The filename is obtained via a
> System property specified by the constant {{oozie.action.output.properties}}.
> {quote}
> Let the output happen in following formats:
> # first and foremost, {{java.util.Properties}} format
> # if output is not parseable, fall back to JSON parsing
> # if output is not parseable, throw an {{Exception}} like before
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)