hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xu...@apache.org
Subject svn commit: r1645071 - /hive/branches/spark/ql/src/java/org/apache/hadoop/hive/ql/exec/spark/RemoteHiveSparkClient.java
Date Fri, 12 Dec 2014 20:56:36 GMT
Author: xuefu
Date: Fri Dec 12 20:56:35 2014
New Revision: 1645071

URL: http://svn.apache.org/r1645071
Log:
HIVE-9079: Hive hangs while failed to get executorCount[Spark Branch] (Chengxiang via Xuefu)

Modified:
    hive/branches/spark/ql/src/java/org/apache/hadoop/hive/ql/exec/spark/RemoteHiveSparkClient.java

Modified: hive/branches/spark/ql/src/java/org/apache/hadoop/hive/ql/exec/spark/RemoteHiveSparkClient.java
URL: http://svn.apache.org/viewvc/hive/branches/spark/ql/src/java/org/apache/hadoop/hive/ql/exec/spark/RemoteHiveSparkClient.java?rev=1645071&r1=1645070&r2=1645071&view=diff
==============================================================================
--- hive/branches/spark/ql/src/java/org/apache/hadoop/hive/ql/exec/spark/RemoteHiveSparkClient.java
(original)
+++ hive/branches/spark/ql/src/java/org/apache/hadoop/hive/ql/exec/spark/RemoteHiveSparkClient.java
Fri Dec 12 20:56:35 2014
@@ -24,6 +24,7 @@ import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
 import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -88,7 +89,7 @@ public class RemoteHiveSparkClient imple
   @Override
   public int getExecutorCount() throws Exception {
     Future<Integer> handler = remoteClient.getExecutorCount();
-    return handler.get().intValue();
+    return handler.get(5, TimeUnit.SECONDS).intValue();
   }
 
   @Override



Mime
View raw message