%@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="java.util.*" %>
<% HWISessionManager hs = (HWISessionManager) application.getAttribute("hs"); %>
<% HWIAuth auth = (HWIAuth) session.getAttribute("auth"); %>
<% if (auth==null) { %>
<% } %>
<% String sessionName = request.getParameter("sessionName"); %>
<% HWISessionItem sess = hs.findSessionItemByName(auth,sessionName); %>
<%
String setquery= request.getParameter("setquery");
String setaction= request.getParameter("setaction");
String message = null;
if (setaction != null){
int ret = sess.runSetProcessorQuery(setquery);
message =" Action taken "+ret;
}
%>
HWI Set Processor
<% if (message !=null){ %>
<%=message%>
<% } %>