% 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, org.apache.hadoop.hive.ql.session.SessionState, java.util.*, org.apache.hadoop.hive.ql.*, org.apache.hadoop.hive.cli.*" %> <%@page contentType="text/html" pageEncoding="UTF-8"%> <% HiveConf hiveConf = new HiveConf(SessionState.class); HiveMetaStoreClient client = new HiveMetaStoreClient(hiveConf); Database db2 = client.getDatabase("default"); List tables = client.getTables(".*"); client.close(); %> HWI Hive Web Interface <%= db%> Table List Name: <%= db2.getName()%> Description: <%= db2.getDescription()%> <% for (String table : tables){ %> <%=table%> <% } %>