add hadoop admin & namenode admin

This commit is contained in:
zhaowei8188127 2013-11-07 14:19:07 +08:00
parent 26da02a7e0
commit 24e9297745
5 changed files with 34 additions and 13 deletions

View File

@ -83,4 +83,9 @@ public class AdminLogonController {
public ModelAndView hadoopAdmin(HttpServletRequest request){ public ModelAndView hadoopAdmin(HttpServletRequest request){
return new ModelAndView("hadoop-administration"); return new ModelAndView("hadoop-administration");
} }
@RequestMapping(value="/namenode_administration")
public ModelAndView namenodeAdmin(HttpServletRequest request){
return new ModelAndView("namenode-administration");
}
} }

View File

@ -103,6 +103,8 @@ require(["dojo/parser", "dijit/Dialog","dijit/layout/TabContainer", "dojox/layou
<div data-dojo-type="dojox/layout/ContentPane" title="Hadoop Administration" <div data-dojo-type="dojox/layout/ContentPane" title="Hadoop Administration"
href="hadoop_administration"></div> href="hadoop_administration"></div>
<div data-dojo-type="dojox/layout/ContentPane" title="Namenode Administration"
href="namenode_administration"></div>
</div> </div>
</div> </div>

View File

@ -7,7 +7,7 @@
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ozzie</title> <title>admin</title>
</head> </head>
<body> <body>
<iframe src="http://133.133.2.150:50030/jobtracker.jsp" height="100%" width="100%" frameborder="0" align="middle" ></iframe> <iframe src="http://133.133.2.150:50030/jobtracker.jsp" height="100%" width="100%" frameborder="0" align="middle" ></iframe>

View File

@ -0,0 +1,15 @@
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8" isELIgnored ="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>admin</title>
</head>
<body>
<iframe src="http://133.133.2.150:50070/dfshealth.jsp" height="100%" width="100%" frameborder="0" align="middle" ></iframe>
</body>
</html>

View File

@ -13,11 +13,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>HaFlow: Flow Run Histories</title> <title>HaFlow: Flow Run Histories</title>
<style> <style>
table .runhistory_table
{ {
border-collapse:collapse; border-collapse:collapse;
} }
table, th, td{ .runhistory_table{
border : 1px solid #C0C0C0; border : 1px solid #C0C0C0;
padding-left : 5px; padding-left : 5px;
padding-right : 5px; padding-right : 5px;
@ -26,8 +26,7 @@ table, th, td{
</head> </head>
<body> <body>
<h1>Flow Run History</h1> <h2>Flow Run History</h2>
<h2>History List</h2>
<% <%
FlowRunHistoryListModel frhlm = FlowRunHistoryListModel frhlm =
@ -35,20 +34,20 @@ table, th, td{
%> %>
<% if(frhlm != null && frhlm.getFlowHistorys().size() != 0){ %> <% if(frhlm != null && frhlm.getFlowHistorys().size() != 0){ %>
<table> <table class="runhistory_table">
<tr> <tr>
<th>Oozie Job Id</th> <th class="runhistory_table">Oozie Job Id</th>
<th>Time</th> <th class="runhistory_table">Time</th>
<th>Commit Message</th> <th class="runhistory_table">Commit Message</th>
</tr> </tr>
<% <%
for( int i = 0; i < frhlm.getFlowHistorys().size(); i++){ for( int i = 0; i < frhlm.getFlowHistorys().size(); i++){
FlowRunHistoryModel frhm = frhlm.getFlowHistorys().get(i); FlowRunHistoryModel frhm = frhlm.getFlowHistorys().get(i);
%> %>
<tr> <tr>
<td><%=frhm.getOozieJobId() %></td> <td class="runhistory_table"><%=frhm.getOozieJobId() %></td>
<td><%=frhm.getTimestamp() %></td> <td class="runhistory_table"><%=frhm.getTimestamp() %></td>
<td><%=frhm.getCommitMessage() %></td> <td class="runhistory_table"><%=frhm.getCommitMessage() %></td>
</tr> </tr>
<% <%
} }