You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by rb...@apache.org on 2022/09/26 21:45:05 UTC
[hive] branch master updated: HIVE-22316: Avoid hostname resolution in LlapInputFormat (#3619)
This is an automated email from the ASF dual-hosted git repository.
rbalamohan 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 6085b09c5c0 HIVE-22316: Avoid hostname resolution in LlapInputFormat (#3619)
6085b09c5c0 is described below
commit 6085b09c5c0a66720b1b04e82dcf8b444e80e804
Author: Dmitriy Fingerman <dm...@gmail.com>
AuthorDate: Mon Sep 26 17:44:51 2022 -0400
HIVE-22316: Avoid hostname resolution in LlapInputFormat (#3619)
Contributed-by: Dmitriy Fingerman <df...@cloudera.com>
---
.../java/org/apache/hadoop/hive/llap/io/api/impl/LlapInputFormat.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/llap-server/src/java/org/apache/hadoop/hive/llap/io/api/impl/LlapInputFormat.java b/llap-server/src/java/org/apache/hadoop/hive/llap/io/api/impl/LlapInputFormat.java
index 19f8ca8dd60..e74885e57a3 100644
--- a/llap-server/src/java/org/apache/hadoop/hive/llap/io/api/impl/LlapInputFormat.java
+++ b/llap-server/src/java/org/apache/hadoop/hive/llap/io/api/impl/LlapInputFormat.java
@@ -86,7 +86,7 @@ public class LlapInputFormat implements InputFormat<NullWritable, VectorizedRowB
private final Deserializer sourceSerDe;
final ColumnVectorProducer cvp;
final ExecutorService executor;
- private final String hostName;
+ private static final String hostName = HiveStringUtils.getHostname();
private final Configuration daemonConf;
@@ -100,7 +100,6 @@ public class LlapInputFormat implements InputFormat<NullWritable, VectorizedRowB
this.sourceASC = (sourceInputFormat instanceof AvoidSplitCombination)
? (AvoidSplitCombination)sourceInputFormat : null;
this.sourceSerDe = sourceSerDe;
- this.hostName = HiveStringUtils.getHostname();
}
@Override