[ 
https://issues.apache.org/jira/browse/OOZIE-999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Kanter updated OOZIE-999:
--------------------------------

    Attachment: OOZIE-999.patch

The patch removes the dash and adds a test to verify that it still works.  
                
> 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
>
>         Attachments: OOZIE-999.patch
>
>
> 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

Reply via email to