You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Robert Kanter (JIRA)" <ji...@apache.org> on 2012/09/25 22:46:07 UTC
[jira] [Commented] (OOZIE-999) XLogStreamer requires
log4j.appender.oozie.layout.ConversionPattern to contain a "-" (dash) or
streaming logs to web UI and CLI don't work
[ https://issues.apache.org/jira/browse/OOZIE-999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13463196#comment-13463196 ]
Robert Kanter commented on OOZIE-999:
-------------------------------------
Does anyone know why the dash is there?
> 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("(.* - ");
> 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