You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Hive QA (JIRA)" <ji...@apache.org> on 2019/04/01 07:45:00 UTC

[jira] [Commented] (HIVE-21392) Misconfigurations of DataNucleus log in log4j.properties

    [ https://issues.apache.org/jira/browse/HIVE-21392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16806487#comment-16806487 ] 

Hive QA commented on HIVE-21392:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12964407/HIVE-21392.08.patch

{color:red}ERROR:{color} -1 due to build exiting with an error

Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/16791/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/16791/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-16791/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Tests exited with: NonZeroExitCodeException
Command 'bash /data/hiveptest/working/scratch/source-prep.sh' failed with exit status 1 and output '+ date '+%Y-%m-%d %T.%3N'
2019-04-01 07:43:32.550
+ [[ -n /usr/lib/jvm/java-8-openjdk-amd64 ]]
+ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
+ JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
+ export PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ export 'ANT_OPTS=-Xmx1g -XX:MaxPermSize=256m '
+ ANT_OPTS='-Xmx1g -XX:MaxPermSize=256m '
+ export 'MAVEN_OPTS=-Xmx1g '
+ MAVEN_OPTS='-Xmx1g '
+ cd /data/hiveptest/working/
+ tee /data/hiveptest/logs/PreCommit-HIVE-Build-16791/source-prep.txt
+ [[ false == \t\r\u\e ]]
+ mkdir -p maven ivy
+ [[ git = \s\v\n ]]
+ [[ git = \g\i\t ]]
+ [[ -z master ]]
+ [[ -d apache-github-source-source ]]
+ [[ ! -d apache-github-source-source/.git ]]
+ [[ ! -d apache-github-source-source ]]
+ date '+%Y-%m-%d %T.%3N'
2019-04-01 07:43:32.553
+ cd apache-github-source-source
+ git fetch origin
+ git reset --hard HEAD
HEAD is now at dc0b16a HIVE-21001: Upgrade to calcite-1.19 (Zoltan Haindrich reviewed by Jesus Camacho Rodriguez)
+ git clean -f -d
Removing standalone-metastore/metastore-server/src/gen/
+ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
+ git reset --hard origin/master
HEAD is now at dc0b16a HIVE-21001: Upgrade to calcite-1.19 (Zoltan Haindrich reviewed by Jesus Camacho Rodriguez)
+ git merge --ff-only origin/master
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2019-04-01 07:43:33.315
+ rm -rf ../yetus_PreCommit-HIVE-Build-16791
+ mkdir ../yetus_PreCommit-HIVE-Build-16791
+ git gc
+ cp -R . ../yetus_PreCommit-HIVE-Build-16791
+ mkdir /data/hiveptest/logs/PreCommit-HIVE-Build-16791/yetus
+ patchCommandPath=/data/hiveptest/working/scratch/smart-apply-patch.sh
+ patchFilePath=/data/hiveptest/working/scratch/build.patch
+ [[ -f /data/hiveptest/working/scratch/build.patch ]]
+ chmod +x /data/hiveptest/working/scratch/smart-apply-patch.sh
+ /data/hiveptest/working/scratch/smart-apply-patch.sh /data/hiveptest/working/scratch/build.patch
error: patch failed: common/src/main/resources/hive-log4j2.properties:51
error: repository lacks the necessary blob to fall back on 3-way merge.
error: common/src/main/resources/hive-log4j2.properties: patch does not apply
error: patch failed: common/src/test/resources/hive-exec-log4j2-test.properties:42
error: repository lacks the necessary blob to fall back on 3-way merge.
error: common/src/test/resources/hive-exec-log4j2-test.properties: patch does not apply
error: patch failed: common/src/test/resources/hive-log4j2-test.properties:49
error: repository lacks the necessary blob to fall back on 3-way merge.
error: common/src/test/resources/hive-log4j2-test.properties: patch does not apply
error: patch failed: data/conf/hive-log4j2.properties:50
error: repository lacks the necessary blob to fall back on 3-way merge.
error: data/conf/hive-log4j2.properties: patch does not apply
error: patch failed: hcatalog/src/test/e2e/templeton/deployers/config/hive/hive-log4j2.properties:49
error: repository lacks the necessary blob to fall back on 3-way merge.
error: hcatalog/src/test/e2e/templeton/deployers/config/hive/hive-log4j2.properties: patch does not apply
error: patch failed: llap-server/src/main/resources/llap-cli-log4j2.properties:58
error: repository lacks the necessary blob to fall back on 3-way merge.
error: llap-server/src/main/resources/llap-cli-log4j2.properties: patch does not apply
error: patch failed: llap-server/src/main/resources/llap-daemon-log4j2.properties:100
error: repository lacks the necessary blob to fall back on 3-way merge.
error: llap-server/src/main/resources/llap-daemon-log4j2.properties: patch does not apply
error: patch failed: llap-server/src/test/resources/llap-daemon-log4j2.properties:64
error: repository lacks the necessary blob to fall back on 3-way merge.
error: llap-server/src/test/resources/llap-daemon-log4j2.properties: patch does not apply
error: patch failed: ql/src/main/resources/hive-exec-log4j2.properties:43
error: repository lacks the necessary blob to fall back on 3-way merge.
error: ql/src/main/resources/hive-exec-log4j2.properties: patch does not apply
error: patch failed: standalone-metastore/metastore-common/src/main/resources/metastore-log4j2.properties:51
error: repository lacks the necessary blob to fall back on 3-way merge.
error: standalone-metastore/metastore-common/src/main/resources/metastore-log4j2.properties: patch does not apply
error: patch failed: standalone-metastore/metastore-server/src/main/resources/metastore-log4j2.properties:51
error: repository lacks the necessary blob to fall back on 3-way merge.
error: standalone-metastore/metastore-server/src/main/resources/metastore-log4j2.properties: patch does not apply
error: src/main/resources/hive-log4j2.properties: does not exist in index
error: src/test/resources/hive-exec-log4j2-test.properties: does not exist in index
error: src/test/resources/hive-log4j2-test.properties: does not exist in index
error: conf/hive-log4j2.properties: does not exist in index
error: src/test/e2e/templeton/deployers/config/hive/hive-log4j2.properties: does not exist in index
error: src/main/resources/llap-cli-log4j2.properties: does not exist in index
error: src/main/resources/llap-daemon-log4j2.properties: does not exist in index
error: src/test/resources/llap-daemon-log4j2.properties: does not exist in index
error: src/main/resources/hive-exec-log4j2.properties: does not exist in index
error: metastore-common/src/main/resources/metastore-log4j2.properties: does not exist in index
error: metastore-server/src/main/resources/metastore-log4j2.properties: does not exist in index
error: main/resources/hive-log4j2.properties: does not exist in index
error: test/resources/hive-exec-log4j2-test.properties: does not exist in index
error: test/resources/hive-log4j2-test.properties: does not exist in index
error: hive-log4j2.properties: does not exist in index
error: test/e2e/templeton/deployers/config/hive/hive-log4j2.properties: does not exist in index
error: main/resources/llap-cli-log4j2.properties: does not exist in index
error: main/resources/llap-daemon-log4j2.properties: does not exist in index
error: test/resources/llap-daemon-log4j2.properties: does not exist in index
error: main/resources/hive-exec-log4j2.properties: does not exist in index
error: src/main/resources/metastore-log4j2.properties: does not exist in index
error: src/main/resources/metastore-log4j2.properties: does not exist in index
The patch does not appear to apply with p0, p1, or p2
+ result=1
+ '[' 1 -ne 0 ']'
+ rm -rf yetus_PreCommit-HIVE-Build-16791
+ exit 1
'
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12964407 - PreCommit-HIVE-Build

> Misconfigurations of DataNucleus log in log4j.properties
> --------------------------------------------------------
>
>                 Key: HIVE-21392
>                 URL: https://issues.apache.org/jira/browse/HIVE-21392
>             Project: Hive
>          Issue Type: Improvement
>          Components: Logging
>    Affects Versions: 2.0.0
>            Reporter: Chen Zhi
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-21392.02.patch, HIVE-21392.03.patch, HIVE-21392.04.patch, HIVE-21392.05.patch, HIVE-21392.06.patch, HIVE-21392.07.patch, HIVE-21392.08.patch, HIVE-21392.patch
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> In the patch of  [HIVE-12020|https://issues.apache.org/jira/browse/HIVE-12020], we changed the DataNucleus related logging configuration from nine fine-grained loggers with three coarse-grained loggers (DataNucleus, Datastore and JPOX). As Prasanth Jayachandran [explain|https://issues.apache.org/jira/browse/HIVE-12020?focusedCommentId=15025612&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15025612], these three loggers are the top-level logger in DataNucleus, so that we don't need to specify other loggers for DataNucleus. However, according to the [documents|http://www.datanucleus.org/products/accessplatform/logging.html] and [source codes|https://github.com/datanucleus/datanucleus-core/blob/master/src/main/java/org/datanucleus/util/NucleusLogger.java#L108] of DataNucleus, the top-level logger in DataNucleus is `DataNucleus`. Therefore, we just need to keep the right one.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)