blob: 463997c8102dce14137e3e16141d4a5fe15a2b26 [file] [log] [blame]
Ian Maxon69375a12015-06-29 16:12:53 -07001<?xml version="1.0" encoding="ISO-8859-1" ?>
Till Westmann5b431ca2015-10-01 19:16:11 -07002
3<!--
4 ! Licensed to the Apache Software Foundation (ASF) under one
5 ! or more contributor license agreements. See the NOTICE file
6 ! distributed with this work for additional information
7 ! regarding copyright ownership. The ASF licenses this file
8 ! to you under the Apache License, Version 2.0 (the
9 ! "License"); you may not use this file except in compliance
10 ! with the License. You may obtain a copy of the License at
11 !
12 ! http://www.apache.org/licenses/LICENSE-2.0
13 !
14 ! Unless required by applicable law or agreed to in writing,
15 ! software distributed under the License is distributed on an
16 ! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 ! KIND, either express or implied. See the License for the
18 ! specific language governing permissions and limitations
19 ! under the License.
20 !-->
21
Preston Carmanc66d23a2015-07-08 23:44:13 -070022<xs:schema
23 xmlns:xs="http://www.w3.org/2001/XMLSchema"
24 xmlns:cl="yarn_cluster"
25 targetNamespace="yarn_cluster"
26 elementFormDefault="qualified">
Ian Maxon69375a12015-06-29 16:12:53 -070027
28 <!-- definition of simple types -->
Preston Carmanc66d23a2015-07-08 23:44:13 -070029 <xs:element
30 name="instance_name"
31 type="xs:string" />
32 <xs:element
33 name="cluster_name"
34 type="xs:string" />
35 <xs:element
36 name="log_dir"
37 type="xs:string" />
38 <xs:element
39 name="txn_log_dir"
40 type="xs:string" />
41 <xs:element
42 name="id"
43 type="xs:string" />
44 <xs:element
45 name="client_ip"
46 type="xs:string" />
47 <xs:element
48 name="cluster_ip"
49 type="xs:string" />
50 <xs:element
51 name="key"
52 type="xs:string" />
53 <xs:element
54 name="value"
55 type="xs:string" />
56 <xs:element
57 name="store"
58 type="xs:string" />
59 <xs:element
60 name="iodevices"
61 type="xs:string" />
62 <xs:element
63 name="web_port"
64 type="xs:string" />
65 <xs:element
66 name="client_port"
67 type="xs:integer" />
68 <xs:element
69 name="cluster_port"
70 type="xs:integer" />
71 <xs:element
72 name="http_port"
73 type="xs:integer" />
74 <xs:element
75 name="debug_port"
76 type="xs:integer" />
77 <xs:element
78 name="metadata_node"
79 type="xs:string" />
80 <xs:element
81 name="cc_container_mem"
82 type="xs:string" />
83 <xs:element
84 name="nc_container_mem"
85 type="xs:string" />
Murtadha Hubailae2309f2016-02-21 00:56:20 -080086 <xs:element name="heartbeat_period" type="xs:integer" />
87 <xs:element name="max_heartbeat_lapse_periods" type="xs:integer" />
88 <xs:element name="profile_dump_period" type="xs:integer" />
89 <xs:element name="default_max_job_attempts" type="xs:integer" />
90 <xs:element name="job_history_size" type="xs:integer" />
91 <xs:element name="result_time_to_live" type="xs:long" />
92 <xs:element name="result_sweep_threshold" type="xs:long" />
93 <xs:element name="cc_root" type="xs:string" />
Ian Maxon69375a12015-06-29 16:12:53 -070094
95 <!-- definition of complex elements -->
96
Preston Carmanc66d23a2015-07-08 23:44:13 -070097 <xs:element name="master_node">
98 <xs:complexType>
99 <xs:sequence>
100 <xs:element ref="cl:id" />
101 <xs:element ref="cl:client_ip" />
102 <xs:element ref="cl:cluster_ip" />
103 <xs:element
104 ref="cl:log_dir"
105 minOccurs="0" />
106 <xs:element ref="cl:client_port" />
107 <xs:element ref="cl:cluster_port" />
108 <xs:element ref="cl:http_port" />
109 <xs:element
110 ref="cl:debug_port"
111 minOccurs="0" />
112 </xs:sequence>
113 </xs:complexType>
114 </xs:element>
Ian Maxon69375a12015-06-29 16:12:53 -0700115
Preston Carmanc66d23a2015-07-08 23:44:13 -0700116 <xs:element name="property">
117 <xs:complexType>
118 <xs:sequence>
119 <xs:element ref="cl:key" />
120 <xs:element ref="cl:value" />
121 </xs:sequence>
122 </xs:complexType>
123 </xs:element>
Ian Maxon69375a12015-06-29 16:12:53 -0700124
Preston Carmanc66d23a2015-07-08 23:44:13 -0700125 <xs:element name="env">
126 <xs:complexType>
127 <xs:sequence>
128 <xs:element
129 ref="cl:property"
130 minOccurs="0"
131 maxOccurs="unbounded" />
132 </xs:sequence>
133 </xs:complexType>
134 </xs:element>
Ian Maxon69375a12015-06-29 16:12:53 -0700135
Preston Carmanc66d23a2015-07-08 23:44:13 -0700136 <xs:element name="node">
137 <xs:complexType>
138 <xs:sequence>
139 <xs:element ref="cl:id" />
140 <xs:element ref="cl:cluster_ip" />
141 <xs:element
142 ref="cl:log_dir"
143 minOccurs="0" />
144 <xs:element
145 ref="cl:txn_log_dir"
146 minOccurs="0" />
147 <xs:element
Preston Carmanc66d23a2015-07-08 23:44:13 -0700148 ref="cl:iodevices"
149 minOccurs="0" />
150 <xs:element
151 ref="cl:debug_port"
152 minOccurs="0" />
153 </xs:sequence>
154 </xs:complexType>
155 </xs:element>
Ian Maxon69375a12015-06-29 16:12:53 -0700156
Preston Carmanc66d23a2015-07-08 23:44:13 -0700157 <xs:element name="substitute_nodes">
158 <xs:complexType>
159 <xs:sequence>
160 <xs:element
161 ref="cl:node"
162 maxOccurs="unbounded" />
163 </xs:sequence>
164 </xs:complexType>
165 </xs:element>
Ian Maxon69375a12015-06-29 16:12:53 -0700166
Preston Carmanc66d23a2015-07-08 23:44:13 -0700167 <xs:element name="cluster">
168 <xs:complexType>
169 <xs:sequence>
170 <xs:element ref="cl:instance_name" />
171 <xs:element ref="cl:cluster_name" />
172 <xs:element
173 ref="cl:cc_container_mem"
174 minOccurs="0" />
175 <xs:element
176 ref="cl:nc_container_mem"
177 minOccurs="0" />
178 <xs:element
179 ref="cl:env"
180 minOccurs="0" />
181 <xs:element
182 ref="cl:log_dir"
183 minOccurs="0" />
184 <xs:element
185 ref="cl:txn_log_dir"
186 minOccurs="0" />
187 <xs:element
188 ref="cl:store"
189 minOccurs="0" />
190 <xs:element
191 ref="cl:iodevices"
192 minOccurs="0" />
193 <xs:element ref="cl:metadata_node" />
194 <xs:element ref="cl:master_node" />
195 <xs:element
196 ref="cl:node"
197 maxOccurs="unbounded" />
198 <xs:element ref="cl:substitute_nodes" />
Murtadha Hubailae2309f2016-02-21 00:56:20 -0800199 <xs:element ref="cl:heartbeat_period" minOccurs="0" />
200 <xs:element ref="cl:max_heartbeat_lapse_periods" minOccurs="0" />
201 <xs:element ref="cl:profile_dump_period" minOccurs="0" />
202 <xs:element ref="cl:default_max_job_attempts" minOccurs="0" />
203 <xs:element ref="cl:job_history_size" minOccurs="0" />
204 <xs:element ref="cl:result_time_to_live" minOccurs="0" />
205 <xs:element ref="cl:result_sweep_threshold" minOccurs="0" />
206 <xs:element ref="cl:cc_root" minOccurs="0" />
Preston Carmanc66d23a2015-07-08 23:44:13 -0700207 </xs:sequence>
208 </xs:complexType>
209 </xs:element>
Ian Maxon69375a12015-06-29 16:12:53 -0700210
211</xs:schema>