-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
spark-action.hbs
132 lines (130 loc) · 6.53 KB
/
spark-action.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{{!
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF 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.
}}
<div class="panel panel-default">
<div class="panel-heading">General</div>
<div class="panel-body">
<div class="form-group">
<label for="inputPassword" class="control-label col-xs-2">Application Name<span class="requiredField"> *</span></label>
<div class="col-xs-7">
{{input type="text" class="form-control" name="spark-name" value=actionModel.sparkName placeholder="Spark Name"}}
{{field-error model=this field='actionModel.sparkName' showErrorMessage=showErrorMessage}}
</div>
</div>
<div class="form-group">
<label for="inputEmail" class="control-label col-xs-2">Application<span class="requiredField"> *</span></label>
<div class="col-xs-7">
<div class="input-group">
{{input type="text" class="form-control" name="class" value=actionModel.jar placeholder="jar/python"}}
<span class="input-group-btn">
<button class="btn btn-secondary" type="button" {{action "openFileBrowser" "actionModel.jar"}}>Browse</button>
</span>
</div>
{{field-error model=this field='actionModel.jar' showErrorMessage=showErrorMessage}}
</div>
</div>
{{#if isJar}}
<div class="form-group">
<label for="inputEmail" class="control-label col-xs-2">Class</label>
<div class="col-xs-7">
<div class="input-group">
{{input type="text" class="form-control" name="class" value=actionModel.class placeholder="org.apache.spark.examples.mllib.JavaALS"}}
</div>
</div>
</div>
{{/if}}
<div class="form-group">
<label for="inputEmail" class="control-label col-xs-2">Append master<span class="requiredField"> *</span></label>
<div class="col-xs-2 spark-namenode">
<input type="checkbox" name="master" checked={{appendNameNode}} value="other" onchange={{action "appendNamenode" value="target"}}>
</div>
</div>
<div class="form-group">
<label for="inputEmail" class="control-label col-xs-2">Runs On<span class="requiredField"> *</span></label>
{{#each mastersList as |master|}}
<div class="col-xs-2">
<input type="radio" name="master" value={{master.value}} onchange={{action "onMasterChange" value="target"}}> {{master.displayName}}
</div>
{{/each}}
<div class="col-xs-2">
<div class="col-xs-1">
<input type="radio" name="master" value="other" onchange={{action "onMasterChange" value="target"}}>
</div>
<div class="col-xs-1">
<input type=text placeholder="Custom" disabled={{disableCustomMaster}} value={{customMaster}} onchange={{action (mut actionModel.master) value="target.value"}}>
</div>
</div>
</div>
<div class="form-group">
<label for="inputEmail" class="control-label col-xs-2"></label>
<div class="col-xs-10">
{{field-error model=this field='actionModel.master' showErrorMessage=showErrorMessage}}
</div>
</div>
<div class="form-group">
<label for="inputEmail" class="control-label col-xs-2">Spark Options</label>
<div class="col-xs-7">
{{input type="text" class="form-control" name="class" value=actionModel.sparkOpts placeholder="spark opts"}}
</div>
</div>
{{#jobxml-config jobXml=actionModel.jobXml openFileBrowser="openFileBrowser" register="register"}}{{/jobxml-config}}
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Transition</div>
<div class="panel-body handlerPanel">
{{#transition-config transition=transition killNodes=killNodes currentNode=currentNode register="register"}}{{/transition-config}}
</div>
</div>
{{#action-credential-config credentials=credentials actionCredentials=actionModel.credentials}}{{/action-credential-config}}
<div class="panel panel-default">
<div class="panel-heading" id="accordion" data-toggle="collapse" data-parent="#accordion" data-target="#collapseOne">
Advanced Properties
<i class="indicator glyphicon glyphicon-chevron-down pull-right"></i>
</div>
<div id="collapseOne" class="panel-collapse collapse">
<br/>
<div class=" panel panel-default">
<div class="panel-body handlerPanel">
<div class="form-group">
<label for="inputEmail" class="control-label col-xs-2">Resource Manager</label>
<div class="col-xs-7">
{{input type="text" class="form-control" name="job-tracker" value=actionModel.jobTracker placeholder="Job tracker"}}
</div>
{{field-error error=errors.actionModel.jobTracker}}
</div>
<div class="form-group">
<label for="inputPassword" class="control-label col-xs-2">Name node</label>
<div class="col-xs-7">
{{input type="text" class="form-control" name="name-node" value=actionModel.nameNode validations="required,noWhitespace" placeholder="Name node"}}
</div>
</div>
{{#file-config files=actionModel.files openFileBrowser="openFileBrowser" register="register" title="File"}}{{/file-config}}
{{#file-config files=actionModel.archives openFileBrowser="openFileBrowser" register="register" title="Archive"}}{{/file-config}}
{{#prepare-config prepare=actionModel.prepare openFileBrowser="openFileBrowser" register="register"}}{{/prepare-config}}
{{#arg-config args=actionModel.args register="register" title="arg"}}{{/arg-config}}
</div>
</div>
<div class=" panel panel-default">
<div class="panel-heading">Configuration</div>
<div class="panel-body handlerPanel">
{{#name-value-config configuration=actionModel.configuration register="register"}}{{/name-value-config}}
</div>
</div>
</div>
</div>
{{#sla-info slaInfo=actionModel.slaInfo register="register" slaEnabled=actionModel.slaEnabled register="register"}}{{/sla-info}}