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

Hive QA commented on HIVE-22190:
--------------------------------



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

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

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

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-09-11 16:28:54.421
+ [[ -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-18543/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-09-11 16:28:54.424
+ cd apache-github-source-source
+ git fetch origin
+ git reset --hard HEAD
HEAD is now at 5b1afb7 HIVE-22179 Break up DDLSemanticAnalyzer - extract 
Function related analyzers (Miklos Gergely reviewd 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 5b1afb7 HIVE-22179 Break up DDLSemanticAnalyzer - extract 
Function related analyzers (Miklos Gergely reviewd by Jesus Camacho Rodriguez)
+ git merge --ff-only origin/master
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2019-09-11 16:28:55.542
+ rm -rf ../yetus_PreCommit-HIVE-Build-18543
+ mkdir ../yetus_PreCommit-HIVE-Build-18543
+ git gc
+ cp -R . ../yetus_PreCommit-HIVE-Build-18543
+ mkdir /data/hiveptest/logs/PreCommit-HIVE-Build-18543/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/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java: 
does not exist in index
error: 
metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java: 
does not exist in index
error: src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.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-18543
+ exit 1
'
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12980060 - PreCommit-HIVE-Build

> Class HiveMetaStoreClient fails to instantiate when running on Java 11
> ----------------------------------------------------------------------
>
>                 Key: HIVE-22190
>                 URL: https://issues.apache.org/jira/browse/HIVE-22190
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 3.1.2, 2.3.6
>         Environment: Java Version: "11.0.3" 2019-04-16 LTS
>            Reporter: Francisco Guerrero
>            Assignee: Francisco Guerrero
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.3.7
>
>         Attachments: HIVE-22190.01.patch, HIVE-22190.01.patch
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> HiveMetaStoreClient fails to initialize in JDK with error:
> Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient 
> with cause
> class [Ljava.lang.Object; cannot be cast to class [Ljava.net.URI; 
> ([Ljava.lang.Object; and [Ljava.net.URI; are in module java.base of loader 
> 'bootstrap')
> This is due the way toArray is being invoked. The compiles and runs well on 
> Java 8. But when running in Java 11, the class instantiation fails. This is a 
> snippet of code to reproduce the issue:
> {noformat}
> URI metastoreUris[] = new URI[2];
> try {
>     metastoreUris[0] = new URI("http://google.com";);
> } catch (URISyntaxException e) {
>     e.printStackTrace();
> }
> List uriList = Arrays.asList(metastoreUris);
> Collections.shuffle(uriList);
> metastoreUris = (URI[]) uriList.toArray();
> {noformat}
> This is causing any client using HiveMetaStoreClient fail, because the 
> constructor is unable to initialize. The type erasure is handled differently 
> in Java 8 and Java 11.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to