%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page errorPage="error_page.jsp"%>
<%@page import="org.apache.hadoop.hive.hwi.*"%>
<%@page import="org.apache.hadoop.hive.conf.*"%>
<%@page import="org.apache.hadoop.hive.ql.history.*"%>
<%@page import="org.apache.hadoop.hive.ql.history.HiveHistory.*"%>
<%@page import="java.util.*"%>
<% HWISessionManager hs = (HWISessionManager) application.getAttribute("hs"); %>
<% if (hs == null) { %>
<% } %>
<% HWIAuth auth = (HWIAuth) session.getAttribute("auth"); %>
<% if (auth==null) { %>
<% } %>
<% String sessionName = request.getParameter("sessionName"); %>
<% HWISessionItem si = hs.findSessionItemByName(auth,sessionName); %>
<% HiveHistoryViewer hv = si.getHistoryViewer(); %>
Session History
|
Hive History
SessionID: <%= hv.getSessionId() %>
<% for (String jobKey: hv.getJobInfoMap().keySet() ){ %> <%=jobKey%>
<% QueryInfo qi = hv.getJobInfoMap().get(jobKey); %>
<% for (String qiKey: qi.hm.keySet() ){ %>
- <%=qiKey%> <%=qi.hm.get(qiKey) %>
<% } %>
<% } %>
<% for (String taskKey: hv.getTaskInfoMap().keySet() ){ %> <%=taskKey%>
<% TaskInfo ti = hv.getTaskInfoMap().get(taskKey); %>
<% for (String tiKey: ti.hm.keySet() ) { %>
- <%=tiKey%> <%=ti.hm.get(tiKey)%>
<% if (tiKey.equalsIgnoreCase("TASK_HADOOP_ID") ){ %>
<%=ti.hm.get(tiKey)%>
<% } %>
<% } %>
<% } %>
|