You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by se...@apache.org on 2017/02/02 02:03:09 UTC

[10/50] [abbrv] hive git commit: HIVE-15387: NPE in HiveServer2 webUI Historical SQL Operations section (Barna Zsombor Klara via Chaoyu Tang)

HIVE-15387: NPE in HiveServer2 webUI Historical SQL Operations section (Barna Zsombor Klara via Chaoyu Tang)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/f4d7471e
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/f4d7471e
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/f4d7471e

Branch: refs/heads/hive-14535
Commit: f4d7471ec45389103b81c8e3edc9fbf96086835e
Parents: 803e1e0
Author: Chaoyu Tang <ct...@cloudera.com>
Authored: Mon Jan 30 11:35:51 2017 -0500
Committer: Chaoyu Tang <ct...@cloudera.com>
Committed: Mon Jan 30 11:35:51 2017 -0500

----------------------------------------------------------------------
 service/src/resources/hive-webapps/hiveserver2/hiveserver2.jsp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/f4d7471e/service/src/resources/hive-webapps/hiveserver2/hiveserver2.jsp
----------------------------------------------------------------------
diff --git a/service/src/resources/hive-webapps/hiveserver2/hiveserver2.jsp b/service/src/resources/hive-webapps/hiveserver2/hiveserver2.jsp
index 6e89981..33797ed 100644
--- a/service/src/resources/hive-webapps/hiveserver2/hiveserver2.jsp
+++ b/service/src/resources/hive-webapps/hiveserver2/hiveserver2.jsp
@@ -193,7 +193,7 @@ for (HiveSession hiveSession: hiveSessions) {
         <td><%= operation.getState() %></td>
         <td><%= operation.getElapsedTime()/1000 %></td>
         <td><%= operation.getEndTime() == null ? "In Progress" : new Date(operation.getEndTime()) %></td>
-        <td><%= operation.getRuntime()/1000 %></td>
+        <td><%= operation.getRuntime() == null ? "n/a" : operation.getRuntime()/1000 %></td>
         <% String link = "/query_page?operationId=" + operation.getOperationId(); %>
         <td>  <a href= <%= link %>>Drilldown</a> </td>
     </tr>