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 2020/02/14 11:11:00 UTC

[jira] [Commented] (HIVE-22855) Do not change DB location to external if DB URI already exists or it's referring to non-managed location

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

Hive QA commented on HIVE-22855:
--------------------------------



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

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

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

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'
2020-02-14 11:09:58.483
+ [[ -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-20611/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'
2020-02-14 11:09:58.486
+ cd apache-github-source-source
+ git fetch origin
+ git reset --hard HEAD
HEAD is now at c363e46 HIVE-22827: Update Flatbuffer version (Jesus Camacho Rodriguez, reviewed by Anishek Agarwal)
+ 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 c363e46 HIVE-22827: Update Flatbuffer version (Jesus Camacho Rodriguez, reviewed by Anishek Agarwal)
+ git merge --ff-only origin/master
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2020-02-14 11:10:00.578
+ rm -rf ../yetus_PreCommit-HIVE-Build-20611
+ mkdir ../yetus_PreCommit-HIVE-Build-20611
+ git gc
+ cp -R . ../yetus_PreCommit-HIVE-Build-20611
+ mkdir /data/hiveptest/logs/PreCommit-HIVE-Build-20611/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
Trying to apply the patch with -p0
error: a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetastoreDefaultTransformer.java: does not exist in index
Trying to apply the patch with -p1
error: standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetastoreDefaultTransformer.java: does not exist in index
Trying to apply the patch with -p2
error: src/main/java/org/apache/hadoop/hive/metastore/MetastoreDefaultTransformer.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-20611
+ exit 1
'
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12993289 - PreCommit-HIVE-Build

> Do not change DB location to external if DB URI already exists or it's referring to non-managed location
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-22855
>                 URL: https://issues.apache.org/jira/browse/HIVE-22855
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>         Environment: Hive-3
>            Reporter: Rajkumar Singh
>            Assignee: Rajkumar Singh
>            Priority: Major
>         Attachments: HIVE-22855.patch, HIVE-22855.patch
>
>
> from Spark:
> {code:java}
> spark.sql("CREATE DATABASE IF NOT EXISTS test LOCATION '/tmp/test'")
> spark.sql("describe database test").show(false)
> {code}
> describe output suggests that DB URI is updated to the external warehouse path, all data will be written to hive warehouse external path which is undesired.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)