You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by pv...@apache.org on 2019/09/11 08:42:29 UTC
[hive] branch master updated: HIVE-21508: ClassCastException when
initializing HiveMetaStoreClient on JDK10 or newer (Ana Jalba,
via Peter Vary)
This is an automated email from the ASF dual-hosted git repository.
pvary pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new faa88bd HIVE-21508: ClassCastException when initializing HiveMetaStoreClient on JDK10 or newer (Ana Jalba, via Peter Vary)
faa88bd is described below
commit faa88bdd138df631b8747938ab77ff3b9196aa20
Author: Peter Vary <pv...@cloudera.com>
AuthorDate: Wed Sep 11 10:41:19 2019 +0200
HIVE-21508: ClassCastException when initializing HiveMetaStoreClient on JDK10 or newer (Ana Jalba, via Peter Vary)
---
.../java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
index 4766365..12de51c 100644
--- a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
+++ b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
@@ -346,9 +346,9 @@ public class HiveMetaStoreClient implements IMetaStoreClient, AutoCloseable {
}
if (MetastoreConf.getVar(conf, ConfVars.THRIFT_URI_SELECTION).equalsIgnoreCase("RANDOM")) {
- List uriList = Arrays.asList(metastoreUris);
+ List<URI> uriList = Arrays.asList(metastoreUris);
Collections.shuffle(uriList);
- metastoreUris = (URI[]) uriList.toArray();
+ metastoreUris = uriList.toArray(new URI[uriList.size()]);
}
} catch (IllegalArgumentException e) {
throw (e);