This is an automated email from the ASF dual-hosted git repository. pvary pushed a commit to branch branch-3 in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/branch-3 by this push: new b00a5c7 HIVE-21508: ClassCastException when initializing HiveMetaStoreClient on JDK10 or newer (Ana Jalba, via Peter Vary) b00a5c7 is described below commit b00a5c78997bca279125449bc02f90dbdae37793 Author: Peter Vary <pv...@cloudera.com> AuthorDate: Mon Sep 23 14:47:51 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/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index fdfcaea..5709b13 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -257,9 +257,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);