You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by pr...@apache.org on 2022/01/19 21:27:50 UTC

[hive] branch master updated: HIVE-25646: Thrift metastore URI reverse resolution could fail in some environments (#2934)

This is an automated email from the ASF dual-hosted git repository.

prasanthj 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 519a3c9  HIVE-25646: Thrift metastore URI reverse resolution could fail in some environments (#2934)
519a3c9 is described below

commit 519a3c9e748af12cf781b8ef27e687fab5dab5fb
Author: Prasanth Jayachandran <pr...@apache.org>
AuthorDate: Wed Jan 19 13:27:12 2022 -0800

    HIVE-25646: Thrift metastore URI reverse resolution could fail in some environments (#2934)
    
    * HIVE-25646: Thrift metastore URI reverse resolution could fail in some environments
    
    * Empty commit to trigger test
---
 .../org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java  | 10 +---------
 1 file changed, 1 insertion(+), 9 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 9fc0987..372afd1 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
@@ -355,15 +355,7 @@ public class HiveMetaStoreClient implements IMetaStoreClient, AutoCloseable {
         if (uriResolverHook != null) {
           metastoreURIArray.addAll(uriResolverHook.resolveURI(tmpUri));
         } else {
-          metastoreURIArray.add(new URI(
-                  tmpUri.getScheme(),
-                  tmpUri.getUserInfo(),
-                  HadoopThriftAuthBridge.getBridge().getCanonicalHostName(tmpUri.getHost()),
-                  tmpUri.getPort(),
-                  tmpUri.getPath(),
-                  tmpUri.getQuery(),
-                  tmpUri.getFragment()
-          ));
+          metastoreURIArray.add(tmpUri);
         }
       }
       metastoreUris = new URI[metastoreURIArray.size()];