Index: hwi/web/set_processor.jsp =================================================================== --- hwi/web/set_processor.jsp (revision 953471) +++ hwi/web/set_processor.jsp (working copy) @@ -1,57 +0,0 @@ -<%@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%> - <% } %> - - - - - -
-
- - - - - - - - -
Set Query
- -
-
- -
- - \ No newline at end of file Index: hwi/web/show_database.jsp =================================================================== --- hwi/web/show_database.jsp (revision 953471) +++ hwi/web/show_database.jsp (working copy) @@ -1,6 +1,4 @@ -<% String db = request.getParameter("db"); %> <%@page errorPage="error_page.jsp" %> - <%@page import="org.apache.hadoop.hive.metastore.*, org.apache.hadoop.hive.metastore.api.*, org.apache.hadoop.hive.conf.HiveConf, @@ -14,7 +12,8 @@ <% HiveConf hiveConf = new HiveConf(SessionState.class); HiveMetaStoreClient client = new HiveMetaStoreClient(hiveConf); - Database db2 = client.getDatabase("default"); + String db = request.getParameter("db"); + Database db2 = client.getDatabase(db); List tables = client.getTables(".*"); client.close(); %> Index: hwi/web/index.jsp =================================================================== --- hwi/web/index.jsp (revision 953471) +++ hwi/web/index.jsp (working copy) @@ -16,9 +16,8 @@

Hive Web Interface

The Hive Web Interface (HWI) offers an alternative to the command line interface (CLI). Once authenticated - a user can start HWIWebSessions. A HWIWebSession is roughly equal to the hive shell from the console window. - Users have access to the SetProcessor and QueryProcessor. After initiating a query the state is kept on the - web server. They can return later to view the status of the query and view any results it produced.

+ users can start HWIWebSessions. A HWIWebSession lives on the server users can submit queries and return later + to view the status of the query and view any results it produced.

Index: hwi/web/session_result.jsp =================================================================== --- hwi/web/session_result.jsp (revision 953471) +++ hwi/web/session_result.jsp (working copy) @@ -50,14 +50,14 @@ <% if (si!=null) { %> - <% for (Vector row : si.getResultBucket() ) { %> + <% for (List rows : si.getResultBucket() ) { %> - <% for (String col : row ) { %> - - <% } %> + <% for (String row : rows ) { %> + + <% } %> <% } %> -
<%=col%><%=row%>
+ <% } %>