[
https://issues.apache.org/jira/browse/OOZIE-999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13463348#comment-13463348
]
Robert Kanter commented on OOZIE-999:
-------------------------------------
>From some very limited testing I just did, removing the dash doesn't seem to
>break anything.
> XLogStreamer requires log4j.appender.oozie.layout.ConversionPattern to
> contain a "-" (dash) or streaming logs to web UI and CLI don't work
> ------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: OOZIE-999
> URL: https://issues.apache.org/jira/browse/OOZIE-999
> Project: Oozie
> Issue Type: Bug
> Reporter: Robert Kanter
> Assignee: Robert Kanter
> Fix For: trunk
>
>
> XLogStreamer.constructPattern() contains:
> {code}
> StringBuilder sb = new StringBuilder();
> if (noFilter) {
> sb.append("(.*)");
> }
> else {
> sb.append("(.* - "); // <----- Here's the dash
> for (int i = 0; i < parameters.size(); i++) {
> sb.append(parameters.get(i) + "\\[");
> sb.append(filterParams.get(parameters.get(i)) + "\\] ");
> }
> sb.append(".*)");
> }
> filterPattern = Pattern.compile(sb.toString());
> {code}
> which causes streaming logs to the web UI and CLI to not work if
> log4j.appender.oozie.layout.ConversionPattern in log4j.properties contains a
> "-" (dash).
> We should try to remove this restriction.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira