This is an automated email from the ASF dual-hosted git repository.
prasanthj 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 d70b516 HIVE-25646: Thrift metastore URI reverse resolution could
fail in some environments (#2933)
d70b516 is described below
commit d70b516a0be7ce1096336542fcd61a61633db2d2
Author: Prasanth Jayachandran <[email protected]>
AuthorDate: Wed Jan 19 13:27:19 2022 -0800
HIVE-25646: Thrift metastore URI reverse resolution could fail in some
environments (#2933)
---
.../org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java | 10 +---------
1 file changed, 1 insertion(+), 9 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 5709b13..66ea806 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
@@ -240,15 +240,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()];