[jira] [Updated] (OOZIE-3026) fix openjpa enhancer stage during build for logging

2017-08-10 Thread Artem Ervits (JIRA)

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

Artem Ervits updated OOZIE-3026:

Attachment: OOZIE-3026-3.patch

[~andras.piros] combination patch does the trick, I raised the level to WARN to 
avoid pollution of mvn build output with Tool Logger output. Let me know if 
you'd like me to change level in oozie-log4j.properties for Tool to match as 
well.

> fix openjpa enhancer stage during build for logging
> ---
>
> Key: OOZIE-3026
> URL: https://issues.apache.org/jira/browse/OOZIE-3026
> Project: Oozie
>  Issue Type: Bug
>  Components: core
>Affects Versions: 4.3.0
> Environment: Maven home: /usr/local/apache-maven-3.5.0
> Java version: 1.8.0_141, vendor: Oracle Corporation
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"
> latest commit: 7d59ce9ba0b79a66169b6d8f1c4b941a381e549a
>Reporter: Artem Ervits
>Assignee: Artem Ervits
>Priority: Minor
> Fix For: 5.0.0
>
> Attachments: OOZIE-3026-0.patch, OOZIE-3026-1.patch, 
> OOZIE-3026-2.patch, OOZIE-3026-3.patch, oozie-jpa-trace.log, 
> oozie-jpa-warn.log
>
>
> when running mkdistro.sh script, getting the following messsage
> {noformat}
> [INFO] --- openjpa-maven-plugin:2.4.1:enhance (enhancer) @ oozie-core ---
> log4j:WARN No appenders could be found for logger (openjpa.Runtime).
> log4j:WARN Please initialize the log4j system properly.
> {noformat}
> since no appenders were found, let's disable the system altogether.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OOZIE-3026) fix openjpa enhancer stage during build for logging

2017-08-10 Thread Andras Piros (JIRA)

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

Andras Piros updated OOZIE-3026:

Attachment: OOZIE-3026-2.patch
oozie-jpa-warn.log
oozie-jpa-trace.log

[~dbist13] I've uploaded a new patch featuring:
* {{persistence.xml}} remains as original. So Log4J settings can be done 
configuration time
* {{oozie-log4j.properties}} is used to fine tune [*OpenJPA Log4J 
settings*|https://openjpa.apache.org/builds/2.4.2/apache-openjpa/docs/ref_guide_logging_log4j.html]
* log file {{$\{oozie.log.dir\}/oozie-jpa.log}} is used w/ 
{{DailyRollingFileAppender}}

Please also find two Oozie OpenJPA log files:
* {{oozie-jpa-warn.log}}: w/ default settings {{INFO}} / {{WARN}}
* {{oozie-jpa-trace.log}}: w/ settings {{INFO}} / {{WARN}} for everything 
except for {{openjpa.Query}}, {{openjpa.jdbc.SQL}}, {{openjpa.jdbc.JDBC}} set 
to {{TRACE}}

> fix openjpa enhancer stage during build for logging
> ---
>
> Key: OOZIE-3026
> URL: https://issues.apache.org/jira/browse/OOZIE-3026
> Project: Oozie
>  Issue Type: Bug
>  Components: core
>Affects Versions: 4.3.0
> Environment: Maven home: /usr/local/apache-maven-3.5.0
> Java version: 1.8.0_141, vendor: Oracle Corporation
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"
> latest commit: 7d59ce9ba0b79a66169b6d8f1c4b941a381e549a
>Reporter: Artem Ervits
>Assignee: Artem Ervits
>Priority: Minor
> Fix For: 5.0.0
>
> Attachments: OOZIE-3026-0.patch, OOZIE-3026-1.patch, 
> OOZIE-3026-2.patch, oozie-jpa-trace.log, oozie-jpa-warn.log
>
>
> when running mkdistro.sh script, getting the following messsage
> {noformat}
> [INFO] --- openjpa-maven-plugin:2.4.1:enhance (enhancer) @ oozie-core ---
> log4j:WARN No appenders could be found for logger (openjpa.Runtime).
> log4j:WARN Please initialize the log4j system properly.
> {noformat}
> since no appenders were found, let's disable the system altogether.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OOZIE-3026) fix openjpa enhancer stage during build for logging

2017-08-07 Thread Artem Ervits (JIRA)

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

Artem Ervits updated OOZIE-3026:

Attachment: OOZIE-3026-1.patch

[~andras.piros] please review, warning disappears with new change and all 
associated messages are logged to openjpa.log during enhancer stage. Two 
questions:

1. what should be the location of any logs during build?
2. the openjpa properties are defined in persistence.xml, perhaps we need to 
revisit the oozie-log4j.properties and modify the openjpa properties there as 
well? We can do that in a follow up jira.

> fix openjpa enhancer stage during build for logging
> ---
>
> Key: OOZIE-3026
> URL: https://issues.apache.org/jira/browse/OOZIE-3026
> Project: Oozie
>  Issue Type: Bug
>  Components: core
>Affects Versions: 4.3.0
> Environment: Maven home: /usr/local/apache-maven-3.5.0
> Java version: 1.8.0_141, vendor: Oracle Corporation
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"
> latest commit: 7d59ce9ba0b79a66169b6d8f1c4b941a381e549a
>Reporter: Artem Ervits
>Assignee: Artem Ervits
>Priority: Minor
> Fix For: 5.0.0
>
> Attachments: OOZIE-3026-0.patch, OOZIE-3026-1.patch
>
>
> when running mkdistro.sh script, getting the following messsage
> {noformat}
> [INFO] --- openjpa-maven-plugin:2.4.1:enhance (enhancer) @ oozie-core ---
> log4j:WARN No appenders could be found for logger (openjpa.Runtime).
> log4j:WARN Please initialize the log4j system properly.
> {noformat}
> since no appenders were found, let's disable the system altogether.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (OOZIE-3026) fix openjpa enhancer stage during build for logging

2017-08-07 Thread Artem Ervits (JIRA)

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

Artem Ervits updated OOZIE-3026:

Summary: fix openjpa enhancer stage during build for logging  (was: disable 
openjpa logging)

> fix openjpa enhancer stage during build for logging
> ---
>
> Key: OOZIE-3026
> URL: https://issues.apache.org/jira/browse/OOZIE-3026
> Project: Oozie
>  Issue Type: Bug
>  Components: core
>Affects Versions: 4.3.0
> Environment: Maven home: /usr/local/apache-maven-3.5.0
> Java version: 1.8.0_141, vendor: Oracle Corporation
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"
> latest commit: 7d59ce9ba0b79a66169b6d8f1c4b941a381e549a
>Reporter: Artem Ervits
>Assignee: Artem Ervits
>Priority: Minor
> Fix For: 5.0.0
>
> Attachments: OOZIE-3026-0.patch
>
>
> when running mkdistro.sh script, getting the following messsage
> {noformat}
> [INFO] --- openjpa-maven-plugin:2.4.1:enhance (enhancer) @ oozie-core ---
> log4j:WARN No appenders could be found for logger (openjpa.Runtime).
> log4j:WARN Please initialize the log4j system properly.
> {noformat}
> since no appenders were found, let's disable the system altogether.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)