Browse Source

[jobsub] Clean up old files

bc Wong 13 years ago
parent
commit
93ac55bf80

+ 0 - 29
apps/jobsub/src/jobsub/templates/confirm.html

@@ -1,29 +0,0 @@
-{% extends "layout.html" %}
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-{% endcomment %}
-{% block title %}{{ title }}{% endblock %}
-{% block content %}
-<div class="prompt_popup">
-	<h1>Please confirm</h1>
-	<form action="{{ url }}" method="POST">
-		<h3 style="display: inline;">{{title}}</h3>
-		<input type="submit" value="Yes" class="btn danger">
-        <a href="/jobsub/" class="btn">No</a>
-	</form>
-</div>
-{% endblock %}

+ 0 - 80
apps/jobsub/src/jobsub/templates/edit.html

@@ -1,80 +0,0 @@
-{% extends "layout.html" %}
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-{% endcomment %}
-{% block title %}Job Design Editor{% endblock %}
-{% block nav %}
-<li><a href="{% url jobsub.views.list_designs %}" class="selected">Job List</a></li>
-<li><a href="{% url jobsub.views.watch %}">History</a></li>
-{% endblock %}
-
-{% block content %}
-    <div class="sidebar">
-		<div class="well">
-        	{% include "types.html" %}
-		</div>
-    </div>
-    <div class="content">
-		<h1>Job Design Editor: {{form.name}} Job</h1>
-        {% if message %}
-        <div>{{message}}</div>
-        {% endif %}
-		<div class="alert-message block-message info">
-		    <b>Tip</b>:
-		    Job Designs allow you to rudimentarily parameterize your jobs by using variables.
-		    At submission time, you'll be prompted to specify the values of any variables
-		    of the form <i>$variable_name</i>.
-		    <!--
-		                     TODO(philip): Put this in if the file chooser is hooked up.
-
-		                     The following variables are treated specially, prompting a "file chooser"
-		                     tool.
-
-		                     <dl class="jobsub_notes clearfix">
-		                     <dt><tt>$input</tt></dt><dd>Input for your job.</dd>
-		                     <dt><tt>$output</tt></dt><dd>Output directory (must not already exist) for your job.</dd>
-		                     </dl>
-		                     -->
-		</div>
-
-        <form method="POST" action="{{ edit_url }}" enctype="multipart/form-data" class="form-stacked">
-
-            <input type="hidden" name="type" value="{{ form.type_str }}"/>
-
-            <label>{{ metadata_form.name.html_name }}</label>
-            {{ metadata_form.name|safe }}
-
-            <label>{{ metadata_form.description.html_name }}</label>
-            {{ metadata_form.description|safe }}
-
-
-            {{ form.render_edit }}
-			
-			<div class="actions">
-                <input type="submit" name="submit" value="Save" class="btn primary"/>
-                <input type="checkbox" name="save_submit"/> Submit upon save.
-                <a href="/jobsub/" class="btn">Cancel</a>
-			</div>
-
-
-        </form>
-
-
-    </div>
-
-
-{% endblock %}

+ 0 - 39
apps/jobsub/src/jobsub/templates/forms/basic_parameterization.html

@@ -1,39 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-{% endcomment %}
-<div>
-{% for field in form %}
-<label>{{ field.label }}</label>
-
-<div>
-    {{ field|safe }}
-</div>
-{% if field.help_text %}
-<div>
-    {{ field.help_text|safe}}
-</div>
-{% endif %}
-{% if field.errors %}
-<div class="alert-message">{{ field.errors }}</div>
-{% endif %}
-
-{% ifequal field.label "Output" %}
-<!-- Filechoose would go here; also for "Input" -->
-{% endifequal %}
-
-{% endfor %}
-</div>

+ 0 - 46
apps/jobsub/src/jobsub/templates/forms/jar.html

@@ -1,46 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-{% endcomment %}
-{# Currently very generic form for jar submission #}
-
-
-<label>{{ form.jarfile.label }}</label>
-<div>
-    <div class="jobsub_input">
-        {{ form.jarfile|safe }}
-    </div>
-    <p>
-        {{ form.jarfile.help_text|safe}}
-    </p>
-
-    <div class="jobsub_errors">{{ form.jarfile.errors }}</div>
-</div>
-
-<label>{{ form.arguments.label }}</label>
-<div>
-    <div class="jobsub_input">
-        {{ form.arguments|safe }}
-        <a class="btn">...</a>
-    </div>
-    <p>
-        {{ form.arguments.help_text|safe}}
-    </p>
-
-    <div class="jobsub_errors">{{ form.arguments.errors }}</div>
-</div>
-
-

+ 0 - 230
apps/jobsub/src/jobsub/templates/forms/streaming.html

@@ -1,230 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-{% endcomment %}
-
-
-<label>{{ form.input.label }}</label>
-<div class="jobsub_multiinput jobsub_paths">
-    <div class="jobsub_input">
-        {{ form.input|safe }}
-    </div>
-    <p>
-        {{ form.input.help_text }}
-    </p>
-
-    <div class="jobsub_errors">
-        {{ form.input.errors }}
-    </div>
-</div>
-
-<label>{{ form.output.label }}</label>
-<div class="jobsub_paths">
-    <div class="jobsub_input">
-        {{ form.output|safe }}
-    </div>
-    <p>
-        {{ form.output.help_text|safe}}
-    </p>
-
-    <div class="jobsub_errors">{{ form.output.errors }}</div>
-</div>
-
-<label>{{ form.mapper_cmd.label }}</label>
-<div>
-    <div class="jobsub_input">
-        {{ form.mapper_cmd|safe }}
-    </div>
-    <p>
-        {{ form.mapper_cmd.help_text|safe}}
-    </p>
-
-    <div class="jobsub_errors">{{ form.mapper_cmd.errors }}</div>
-</div>
-
-<label>{{ form.reducer_cmd.label }}</label>
-<div>
-    <div class="jobsub_input">
-        {{ form.reducer_cmd|safe }}
-
-    </div>
-    <p>
-        {{ form.reducer_cmd.help_text|safe}}
-    </p>
-
-    <div class="jobsub_errors">{{ form.reducer_cmd.errors }}</div>
-</div>
-
-<label>{{ form.num_reduce_tasks.label }}</label>
-<div>
-    <div class="jobsub_input">
-        {{ form.num_reduce_tasks|safe }}
-    </div>
-    <p>
-        {{ form.num_reduce_tasks.help_text|safe}}
-    </p>
-
-    <div class="jobsub_errors">{{ form.num_reduce_tasks.errors }}</div>
-</div>
-
-<label>{{ form.cache_files.label }}</label>
-<div class="jobsub_multiinput jobsub_paths">
-    <div class="jobsub_input">
-        {{ form.cache_files|safe }}
-
-    </div>
-    <p>
-        {{ form.cache_files.help_text|safe}}
-    </p>
-
-    <div class="jobsub_errors">{{ form.cache_files.errors }}</div>
-</div>
-
-
-<a class="jobsub_toggle_advanced btn">Show Advanced Options</a>
-
-
-<div class="advanced_options" style="visibility: collapse; display: none;">
-    <label>{{ form.mapper_class.label }}</label>
-
-    <div>
-        <div class="jobsub_input">
-            {{ form.mapper_class|safe }}
-        </div>
-        <p>
-            {{ form.mapper_class.help_text|safe}}
-        </p>
-
-        <div class="jobsub_errors">{{ form.mapper_class.errors }}</div>
-    </div>
-
-    <label>{{ form.combiner_class.label }}</label>
-
-    <div>
-        <div class="jobsub_input">
-            {{ form.combiner_class|safe }}
-        </div>
-        <p>
-            {{ form.combiner_class.help_text|safe}}
-        </p>
-
-        <div class="jobsub_errors">{{ form.jobsub_input.errors }}</div>
-    </div>
-
-    <label>{{ form.reducer_class.label }}</label>
-
-    <div>
-        <div class="jobsub_input">
-            {{ form.reducer_class|safe }}
-        </div>
-        <p>
-            {{ form.reducer_class.help_text|safe}}
-        </p>
-
-        <div class="jobsub_errors">{{ form.reducer_class.errors }}</div>
-    </div>
-
-    <label>{{ form.inputformat_class.label }}</label>
-
-    <div>
-        <div class="jobsub_input">
-            {{ form.inputformat_class|safe }}
-        </div>
-        <p>
-            {{ form.inputformat_class.help_text|safe}}
-        </p>
-
-        <div class="jobsub_errors">{{ form.inputformat_class.errors }}</div>
-    </div>
-
-    <label>{{ form.outputformat_class.label }}</label>
-
-    <div>
-        <div class="jobsub_input">
-            {{ form.outputformat_class|safe }}
-        </div>
-        <p>
-            {{ form.outputformat_class.help_text|safe}}
-        </p>
-
-        <div class="jobsub_errors">{{ form.outputformat_class.errors }}</div>
-    </div>
-
-    <label>{{ form.partitioner_class.label }}</label>
-
-    <div>
-        <div class="jobsub_input">
-            {{ form.partitioner_class|safe }}
-        </div>
-        <p>
-            {{ form.partitioner_class.help_text|safe}}
-        </p>
-
-        <div class="jobsub_errors">{{ form.partitioner_class.errors }}</div>
-    </div>
-
-    <label>{{ form.inputreader.label }}</label>
-
-    <div>
-        <div class="jobsub_input">
-            {{ form.inputreader|safe }}
-        </div>
-        <p>
-            {{ form.inputreader.help_text|safe}}
-        </p>
-
-        <div class="jobsub_errors">{{ form.inputreader.errors }}</div>
-    </div>
-
-    <label>{{ form.cache_archives.label }}</label>
-
-    <div>
-        <div class="jobsub_input">
-            {{ form.cache_archives|safe }}
-        </div>
-        <p>
-            {{ form.cache_archives.help_text|safe }}
-        </p>
-
-        <div class="jobsub_errors">{{ form.cache_archives.errors }}</div>
-    </div>
-
-    <label>{{ form.hadoop_properties.label }}</label>
-
-    <div>
-        <div class="jobsub_input">
-            {{ form.hadoop_properties|safe }}
-        </div>
-        <p>
-            {{ form.hadoop_properties.help_text|safe}}
-        </p>
-
-        <div class="jobsub_errors">{{ form.hadoop_properties.errors }}</div>
-    </div>
-
-</div>
-
-<script type="text/javascript">
-    $('.jobsub_toggle_advanced').click(function() {
-        if ($('.advanced_options').css('visibility') == 'collapse'){
-            $('.advanced_options').css('visibility', 'visible').css('display', 'block');
-            $('.jobsub_toggle_advanced').html('Hide Advanced Options');
-        }else{
-            $('.advanced_options').css('visibility', 'collapse').css('display', 'none');
-            $('.jobsub_toggle_advanced').html('Show Advanced Options');
-        }
-    });
-</script>

+ 0 - 96
apps/jobsub/src/jobsub/templates/layout.html

@@ -1,96 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-{% endcomment %}
-{% load babel %}
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-	<title>{% block title %}{% endblock %} - Job Designer</title>
-	{%block head %}{% endblock %}
-	<link rel="stylesheet" href="/static/ext/css/bootstrap.min.css" type="text/css" media="screen" title="no title" charset="utf-8" />
-	<link rel="stylesheet" href="/static/css/jhue.css" type="text/css" media="screen" title="no title" charset="utf-8" />
-	
-	<style type="text/css">
-      body {
-        padding-top: 100px;
-      }
-    </style>
-	<script src="/static/ext/js/jquery/jquery-1.7.min.js" type="text/javascript" charset="utf-8"></script>
-	<script src="/static/js/Source/jHue/jquery.showusername.js" type="text/javascript" charset="utf-8"></script>
-	<script src="/static/js/Source/jHue/jquery.contextmenu.js" type="text/javascript" charset="utf-8"></script>
-	<script src="/static/ext/js/jquery/plugins/jquery.simpleplaceholder.js" type="text/javascript" charset="utf-8"></script>
-	<script src="/static/ext/js/jquery/plugins/jquery.dataTables.1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
-	<script src="/static/ext/js/bootstrap-tabs.js" type="text/javascript" charset="utf-8"></script>	
-	<script src="/static/ext/js/bootstrap-dropdown.js" type="text/javascript" charset="utf-8"></script>	
-	<script src="/static/ext/js/bootstrap-modal.js" type="text/javascript" charset="utf-8"></script>	
-	<script src="/static/ext/js/bootstrap-twipsy.js" type="text/javascript" charset="utf-8"></script>	
-	<script src="/static/ext/js/bootstrap-popover.js" type="text/javascript" charset="utf-8"></script>	
-	
-
-	<script type="text/javascript" charset="utf-8">
-		$(document).ready(function(){
-			$("#username").showUsername();
-			$("input:text[placeholder]").simplePlaceholder();
-			$(".submitter").keydown(function(e){
-				if (e.keyCode==13){
-					$(this).closest("form").submit();
-				}
-			}).change(function(){
-				$(this).closest("form").submit();
-			});
-		});
-	</script>
-	
-</head>
-<body>
-	<div class="topbar">
-		<div class="topbar-inner">
-			<div class="container-fluid">
-				<a class="brand" href="#">jHue</a>
-				<ul class="nav">
-					<li><a href="/beeswax">Beeswax</a></li>
-					<li><a href="/filebrowser/">File Browser</a></li>
-					<li class="active"><a href="/jobsub/">Job Designer</a></li>
-					<li><a href="/jobbrowser/jobs/">Job Browser</a></li>
-					<li><a href="/useradmin/">User Admin</a></li>
-					<li><a href="/shell/">{{_('Shell')}}</a></li>
-					<li><a href="/help/">Help</a></li>
-					<li><a href="/about/">About</a></li>
-				</ul>
-				<p class="pull-right">Logged in as <strong><span id="username">xxx</span></strong> - <a href="/accounts/logout">Sign out</a></p>
-			</div>
-		</div>
-	</div>
-	<div class="menubar">
-		<div class="menubar-inner">
-			<div class="container-fluid">
-				<ul class="nav">
-					{%block nav %}{% endblock %}
-				</ul>
-			</div>
-		</div>
-	</div>
-	
-	<div class="container-fluid">
-		{% block content %}{% endblock %}
-	</div>
-</body>
-</html>

+ 0 - 121
apps/jobsub/src/jobsub/templates/list.html

@@ -1,121 +0,0 @@
-{% extends "layout.html" %}
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-{% endcomment %}
-{% block title %}Job Design List{% endblock %}
-{% block nav %}
-<li><a href="{% url jobsub.views.list_designs %}" class="selected">Job List</a></li>
-<li><a href="{% url jobsub.views.watch %}">History</a></li>
-{% endblock %}
-{% block content %}
-        <div class="sidebar">
-			<div class="well">
-            {% include "types.html" %}
-			</div>
-        </div>
-
-        <div class="content">
-			<h1>Job Designer: Job Designs</h1>
-            <form action="{% url jobsub.list %}" method="get">
-                <div class="well">
-                    <span>Filter By Owner:</span>
-                    <input name="owner" alt="Filter By Owner"
-                           value="{{ owner }}"/>
-                    <span>Filter By Name:</span>
-                    <input name="name" alt="Filter By Name"
-                           value="{{ name }}"/>
-                    <input class="btn primary" type="submit"/>
-
-                </div>
-            </form>
-
-            <table class="datatables" cellpadding="0" cellspacing="0">
-                <thead>
-                <tr>
-                    <th>Owner</th>
-                    <th>Name</th>
-                    <th>Last Modified</th>
-                    <th></th>
-                </tr>
-                </thead>
-                <tbody>
-                {% for jobdesign in jobdesigns %}
-                <tr>
-                <td>
-                    {{ jobdesign.owner.username }}
-
-
-                </td>
-                <td>{{ jobdesign.name }}</td>
-                <td>
-                    <span style="display: none">{{ jobdesign.last_modified|date:"U" }}</span>
-                    {{ jobdesign.last_modified|timesince }} ago
-                </td>
-                <td>
-					<a class="btn small contextEnabler" data-menuid="{{ jobdesign.id }}">Options</a>
-					<ul class="contextMenu" id="menu{{ jobdesign.id }}">
-                    	<li><a title="Launch job with this design" class="contextItem" href="{{ jobdesign.submit_url }}">Submit to Cluster</a></li>
-                    	<li><a title="Copy design" class="contextItem" href="{{ jobdesign.clone_url }}">Copy</a></li>
-                    	<li><a title="Edit this design" class="contextItem" href="{{ jobdesign.edit_url }}">Edit</a></li>
-                    	<li><a title="Delete this design" alt="Are you sure you want to delete this design?" class="contextItem confirmationModal" data-confirmation-url="{{ jobdesign.delete_url }}">Delete</a></li>
-                </td>
-                </tr>
-                {% endfor %}
-                </tbody>
-            </table>
-        </div>
-
-
-		<div id="deleteDesign" class="modal hide fade">
-			<form id="deleteDesignForm" action="" method="POST">
-			<div class="modal-header">
-				<a href="#" class="close">&times;</a>
-				<h3 id="deleteDesignMessage">Confirm action</h3>
-			</div>
-			<div class="modal-footer">
-				<input type="submit" class="btn danger" value="Yes"/>
-				<a href="#" class="btn secondary hideModal">No</a>
-			</div>
-			</form>
-		</div>
-<script type="text/javascript" charset="utf-8">
-    $(document).ready(function() {
-        $(".datatables").dataTable({
-            "bPaginate": false,
-            "bLengthChange": false,
-            "bFilter": false,
-            "bInfo": false
-        });
-		$(".contextEnabler").jHueContextMenu();
-		$("#deleteDesign").modal({
-			backdrop: "static",
-			keyboard: true
-		});
-		$(".confirmationModal").live("click", function(){
-			var _this = $(this);
-			$.getJSON(_this.attr("data-confirmation-url"), function(data){
-				$("#deleteDesignForm").attr("action", data.url);
-				$("#deleteDesignMessage").text(_this.attr("alt"));
-			});
-			$("#deleteDesign").modal("show");
-		});
-		$(".hideModal").click(function(){
-			$("#deleteDesign").modal("hide");
-		});
-    });
-</script>
-{% endblock %}

+ 0 - 46
apps/jobsub/src/jobsub/templates/parameterize.html

@@ -1,46 +0,0 @@
-{% extends "layout.html" %}
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-{% endcomment %}
-{% block title %}Submit Job: {{ job_design.name }}{% endblock %}
-{% block nav %}
-<li><a href="{% url jobsub.views.list_designs %}" class="selected">Job List</a></li>
-<li><a href="{% url jobsub.views.watch %}">History</a></li>
-{% endblock %}
-
-{% block content %}
-<div class="sidebar">
-	<div class="well">
-		<h6>Job Name</h6>
-        <span>{{ job_design.name }}</span>
-        {% if job_design.description %}
-        <h6>Description</h6>
-        <span>{{ job_design.description }}</span>
-        {% endif %}
-	</div>
-</div>
-<div class="content">
-	<h1>Submit Job: {{ job_design.name }} </h1>
-	<form class="form-stacked" action="{% url jobsub.views.submit_design job_design.id %}" method="POST" enctype="multipart/form-data">
-		{{ form.render_parameterization }}
-        <div class="actions">
-            <input type="submit" name="submitter" value="Start Job" class="btn primary"/>
-            <a href="/jobsub/" class="btn">Cancel</a>
-        </div>
-	</form>
-</div>
-{% endblock %}

+ 0 - 43
apps/jobsub/src/jobsub/templates/scripteditor.html

@@ -1,43 +0,0 @@
-{% extends "layout.html" %}
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-{% endcomment %}
-{% block title %}Script editor{% endblock %}
-{% block nav %}
-<li><a href="{% url jobsub.views.list_designs %}" class="selected">Job List</a></li>
-<li><a href="{% url jobsub.views.watch %}">History</a></li>
-{% endblock %}
-
-{% block content %}
-
-	{% if error %}
-		<h1>Error!</h1> 
-		<div class="alert-message block-message error">{{ error }}</div>
-	{% endif %}
-	{% if message %}
-		<div class="alert-message block-message info">{{ message }}</div>
-	{% endif %}
-	<form action="" method="POST" enctype="multipart/form-data">
-		{{ templates.non_field_errors }}
-		{{ template.as_p }}
-		<input type="submit" name="load" value="Load Template" />
-		{{ editor.non_field_errors }}
-		{{ editor.as_p }}
-		<input type="submit" name="save" value="Save" class="btn primary" />
-	</form>
-	
-{% endblock %}

+ 0 - 26
apps/jobsub/src/jobsub/templates/types.html

@@ -1,26 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-{% endcomment %}
-<h4>Create a Job Design</h4>
-<ul>
-	{% for type, newurl in newlinks %}
-		<li><a href="{{ newurl }}" class="jframe_target(.jobsub_right_col)">{{ type|capfirst }}</a></li>
-	{% endfor %}
-	{% if show_install_examples %}
-		<li><a href="{% url jobsub.views.setup %}">Install Samples</a></li>
-	{% endif %}
-</ul>

+ 0 - 80
apps/jobsub/src/jobsub/templates/watch.html

@@ -1,80 +0,0 @@
-{% extends "layout.html" %}
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-{% endcomment %}
-{% block title %}Job History{% endblock %}
-{% block head %}
-<meta http-equiv="refresh" content="5"/>
-{% endblock %}
-{% block nav %}
-<li><a href="{% url jobsub.views.list_designs %}">Job List</a></li>
-<li><a href="{% url jobsub.views.watch %}" class="selected">History</a></li>
-{% endblock %}
-{% block content %}
-
-<h1>Recently Launched Jobs</h1>
-<table class="datatables">
-    <thead>
-    <tr>
-        <th>Owner</th>
-        <th>Name</th>
-        <th>Submitted</th>
-        <th>Last known state</th>
-        <th></th>
-    </tr>
-    </thead>
-    <tbody>
-    {% for submission in submissions %}
-    <tr>
-        <td>{{ submission.owner }}</td>
-        <td>{{ submission.name }}</td>
-        <td>
-            <span class="jobsub_actual_date" style="display: none">{{ submission.submission_date|date:"U" }}</span>
-            {{ submission.submission_date|timesince }} ago
-        </td>
-
-        <td>
-        {%if submission.last_seen_state_as_string == "SUCCESS" %}
-            <span class="label success">{{ submission.last_seen_state_as_string }}</span>
-        {% else %}
-        {%if submission.last_seen_state_as_string == "ERROR" %}
-            <span class="label important">{{ submission.last_seen_state_as_string }}</span>
-        {%else %}
-            <span class="label">{{ submission.last_seen_state_as_string }}</span>
-        {% endif %}{% endif %}
-        </td>
-        <td><a href="{{ submission.watch_url }}" class="btn">Watch Progress</a></td>
-    </tr>
-    {% endfor %}
-    </tbody>
-</table>
-{% if more %}
-<a href="/jobsub/watch/?offset={{ offset }}&limit={{ limit|add:"20" }}" class="jobsub_more">See more</a>
-{% endif %}
-
-<script type="text/javascript" charset="utf-8">
-    $(document).ready(function() {
-        $(".datatables").dataTable({
-            "bPaginate": false,
-            "bLengthChange": false,
-            "bFilter": false,
-            "bInfo": false
-        });
-    });
-</script>
-
-{% endblock %}

+ 0 - 59
apps/jobsub/src/jobsub/templates/watch_submission.html

@@ -1,59 +0,0 @@
-{% extends "layout.html" %}
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-{% endcomment %}
-{% block title %}Job - {{ submission.name }}{% endblock %}
-{% block head %}
-	{% if not completed %}
-		<meta http-equiv="refresh" content="5" />
-	{% endif %}
-{% endblock %}
-{% block nav %}
-<li><a href="{% url jobsub.views.list_designs %}" class="selected">Job List</a></li>
-<li><a href="{% url jobsub.views.watch %}">History</a></li>
-{% endblock %}
-{% block content %}
-	<div class="sidebar">
-		<div class="well">
-			<h6>Status</h6>
-			{% if completed %}
-				<span class="label success">Finished</span>
-			{% else %}
-				<span class="label warning">Running</span>
-				<span class="help-block">note: this view will auto refresh every 5 seconds</span>
-			{% endif %}
-			<br/><br/>
-			<h6>Launched Jobs</h6>
-			<ul>
-				{% for j in jobs %}
-				<li><a href="{% url single_job jobid=j %}">{{ j }}</a>
-				{% endfor %}
-			</ul>
-		</div>
-	</div>
-	
-	<div class="content">
-		<h1>Job - {{ submission.name }}</h1>		
-
-		<h2>Last 10KB of stdout:</h2>
-		<pre>{{ job_data.stdout_tail }}</pre>
-
-		<h2>Last 10KB of stderr:</h2>
-		<pre>{{ job_data.stderr_tail }}</pre>
-	</div>
-		
-{% endblock %}

+ 0 - 9
apps/jobsub/src/jobsub/urls.py

@@ -34,15 +34,6 @@ urlpatterns = patterns(
   url(r'^job/(?P<jobid>[-\w]+)$', 'views.oozie_job'),
   url(r'^list_history$', 'views.list_history'),
 
-  url(r'^test$', 'views.bc_test'),
-
-  # Submitted jobs
-  #url(r'^watch/$', 'views.watch'),
-  #url(r'^watch/(?P<id>\d+)$', 'views.watch_submission'),
-
-  # Status Bar (typically invoked by /status_bar, not /jobsub/status_bar)
-  #url(r'^status_bar/$', 'views.status_bar'),
-
   # Setup
   #url(r'^setup/$', 'views.setup'),
 )

+ 0 - 16
apps/jobsub/src/jobsub/views.py

@@ -267,19 +267,3 @@ _STD_PROPERTIES = [
 ]
 
 _STD_PROPERTIES_JSON = json.dumps(_STD_PROPERTIES)
-
-
-def bc_test(request):
-  __import__("ipdb").set_trace()
-  wf = models.OozieWorkflow(owner=request.user, name='Test WF')
-  wf.save()
-
-  java_action = models.OozieJavaAction(jar_path="hdfs://somewhere",
-                                       main_class="foo.bar.com",
-                                       args="-D bulllshit",
-                                       job_properties='{ "json": "here" }')
-  java_action.action_type = java_action.ACTION_TYPE
-  java_action.save()
-
-  wf.root_action = java_action
-  wf.save()