You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2022/07/22 09:44:20 UTC

[GitHub] [hive] abstractdog commented on a diff in pull request #3468: HIVE-26420: Configurable timeout for HiveSplitGenerator to wait for LLAP instances

abstractdog commented on code in PR #3468:
URL: https://github.com/apache/hive/pull/3468#discussion_r927484258


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/Utils.java:
##########
@@ -96,14 +98,15 @@ public String[] getLocations(InputSplit split) throws IOException {
   }
 
   @VisibleForTesting
-  static SplitLocationProvider getCustomSplitLocationProvider(LlapRegistryService serviceRegistry, Logger LOG) throws
-      IOException {
+  static SplitLocationProvider getCustomSplitLocationProvider(LlapRegistryService serviceRegistry,
+      int clusterReadyTimeoutMs, Logger LOG) throws IOException {
     LOG.info("Using LLAP instance " + serviceRegistry.getApplicationId());
 
     Collection<LlapServiceInstance> serviceInstances =
-        serviceRegistry.getInstances().getAllInstancesOrdered(true);
+        serviceRegistry.getInstances(clusterReadyTimeoutMs).getAllInstancesOrdered(true);

Review Comment:
   okay, I've just realized this is not what we want
   clusterReadyTimeoutMs is for zookeeper readiness, but we want to wait x ms until at least 1 LLAP instance is up, which needs custom logic here (some polling)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org