[
https://issues.apache.org/jira/browse/HIVE-20357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16581768#comment-16581768
]
Hive QA commented on HIVE-20357:
--------------------------------
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12935772/HIVE-20357.1.branch-3.patch
{color:red}ERROR:{color} -1 due to build exiting with an error
Test results:
https://builds.apache.org/job/PreCommit-HIVE-Build/13249/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/13249/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-13249/
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'
2018-08-16 00:19:57.246
+ [[ -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-13249/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'
2018-08-16 00:19:57.249
+ cd apache-github-source-source
+ git fetch origin
+ git reset --hard HEAD
HEAD is now at 489b37a HIVE-14898: HS2 shouldn't log callstack for an empty
auth header error
+ 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 489b37a HIVE-14898: HS2 shouldn't log callstack for an empty
auth header error
+ git merge --ff-only origin/master
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2018-08-16 00:19:58.395
+ rm -rf ../yetus_PreCommit-HIVE-Build-13249
+ mkdir ../yetus_PreCommit-HIVE-Build-13249
+ git gc
+ cp -R . ../yetus_PreCommit-HIVE-Build-13249
+ mkdir /data/hiveptest/logs/PreCommit-HIVE-Build-13249/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: a/metastore/scripts/upgrade/hive/upgrade-3.0.0-to-3.1.0.hive.sql: does
not exist in index
error:
a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/tools/MetastoreSchemaTool.java:
does not exist in index
error:
a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/tools/SchemaToolCommandLine.java:
does not exist in index
error:
a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/tools/TestSchemaToolForMetastore.java:
does not exist in index
error:
standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/tools/MetastoreSchemaTool.java:
does not exist in index
error:
standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/tools/SchemaToolCommandLine.java:
does not exist in index
error:
standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/tools/TestSchemaToolForMetastore.java:
does not exist in index
error: scripts/upgrade/hive/upgrade-3.0.0-to-3.1.0.hive.sql: does not exist in
index
error:
src/main/java/org/apache/hadoop/hive/metastore/tools/MetastoreSchemaTool.java:
does not exist in index
error:
src/main/java/org/apache/hadoop/hive/metastore/tools/SchemaToolCommandLine.java:
does not exist in index
error:
src/test/java/org/apache/hadoop/hive/metastore/tools/TestSchemaToolForMetastore.java:
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-13249
+ exit 1
'
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12935772 - PreCommit-HIVE-Build
> Introduce initOrUpgradeSchema option to schema tool
> ---------------------------------------------------
>
> Key: HIVE-20357
> URL: https://issues.apache.org/jira/browse/HIVE-20357
> Project: Hive
> Issue Type: Improvement
> Components: Standalone Metastore
> Reporter: Daniel Dai
> Assignee: Daniel Dai
> Priority: Major
> Attachments: HIVE-20357.1.branch-3.patch, HIVE-20357.1.patch
>
>
> Currently, schematool has two option: initSchema/upgradeSchema. User needs to
> use different command line for different action. However, from the schema
> version stored in db, we shall able to figure out if there's a need to
> init/upgrade, and choose the right action automatically.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)