You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by GitBox <gi...@apache.org> on 2021/01/03 06:25:49 UTC

[GitHub] [zeppelin] zjffdu commented on a change in pull request #4010: [ZEPPELIN-5185]. HiveMonitor thread is never finished sometimes

zjffdu commented on a change in pull request #4010:
URL: https://github.com/apache/zeppelin/pull/4010#discussion_r550963054



##########
File path: jdbc/src/main/java/org/apache/zeppelin/jdbc/hive/HiveUtils.java
##########
@@ -71,11 +71,14 @@ public static void startHiveMonitorThread(Statement stmt,
     final ProgressBar progressBar = progressBarTemp;
     final long timeoutThreshold = Long.parseLong(
             jdbcInterpreter.getProperty("zeppelin.jdbc.hive.timeout.threshold", "" + 60 * 1000));
+    final long queryInterval = Long.parseLong(jdbcInterpreter.getProperty("zeppelin.jdbc.hive.monitor.query_interval",
+            DEFAULT_QUERY_PROGRESS_INTERVAL + ""));
     Thread thread = new Thread(() -> {
       boolean jobLaunched = false;
       long jobLastActiveTime = System.currentTimeMillis();
       while (hiveStmt.hasMoreLogs() && !Thread.interrupted()) {
         try {
+          Thread.sleep(queryInterval);

Review comment:
       Fixed




----------------------------------------------------------------
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.

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