blob: f54cf90945bf371d67fa44cfd53ad6f1c8c3f0f1 [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" />
Ian Maxon69375a12015-06-29 16:12:53 -070086
87
88 <!-- definition of complex elements -->
89
Preston Carmanc66d23a2015-07-08 23:44:13 -070090 <xs:element name="master_node">
91 <xs:complexType>
92 <xs:sequence>
93 <xs:element ref="cl:id" />
94 <xs:element ref="cl:client_ip" />
95 <xs:element ref="cl:cluster_ip" />
96 <xs:element
97 ref="cl:log_dir"
98 minOccurs="0" />
99 <xs:element ref="cl:client_port" />
100 <xs:element ref="cl:cluster_port" />
101 <xs:element ref="cl:http_port" />
102 <xs:element
103 ref="cl:debug_port"
104 minOccurs="0" />
105 </xs:sequence>
106 </xs:complexType>
107 </xs:element>
Ian Maxon69375a12015-06-29 16:12:53 -0700108
Preston Carmanc66d23a2015-07-08 23:44:13 -0700109 <xs:element name="property">
110 <xs:complexType>
111 <xs:sequence>
112 <xs:element ref="cl:key" />
113 <xs:element ref="cl:value" />
114 </xs:sequence>
115 </xs:complexType>
116 </xs:element>
Ian Maxon69375a12015-06-29 16:12:53 -0700117
Preston Carmanc66d23a2015-07-08 23:44:13 -0700118 <xs:element name="env">
119 <xs:complexType>
120 <xs:sequence>
121 <xs:element
122 ref="cl:property"
123 minOccurs="0"
124 maxOccurs="unbounded" />
125 </xs:sequence>
126 </xs:complexType>
127 </xs:element>
Ian Maxon69375a12015-06-29 16:12:53 -0700128
Preston Carmanc66d23a2015-07-08 23:44:13 -0700129 <xs:element name="node">
130 <xs:complexType>
131 <xs:sequence>
132 <xs:element ref="cl:id" />
133 <xs:element ref="cl:cluster_ip" />
134 <xs:element
135 ref="cl:log_dir"
136 minOccurs="0" />
137 <xs:element
138 ref="cl:txn_log_dir"
139 minOccurs="0" />
140 <xs:element
141 ref="cl:store"
142 minOccurs="0" />
143 <xs:element
144 ref="cl:iodevices"
145 minOccurs="0" />
146 <xs:element
147 ref="cl:debug_port"
148 minOccurs="0" />
149 </xs:sequence>
150 </xs:complexType>
151 </xs:element>
Ian Maxon69375a12015-06-29 16:12:53 -0700152
Preston Carmanc66d23a2015-07-08 23:44:13 -0700153 <xs:element name="substitute_nodes">
154 <xs:complexType>
155 <xs:sequence>
156 <xs:element
157 ref="cl:node"
158 maxOccurs="unbounded" />
159 </xs:sequence>
160 </xs:complexType>
161 </xs:element>
Ian Maxon69375a12015-06-29 16:12:53 -0700162
Preston Carmanc66d23a2015-07-08 23:44:13 -0700163 <xs:element name="cluster">
164 <xs:complexType>
165 <xs:sequence>
166 <xs:element ref="cl:instance_name" />
167 <xs:element ref="cl:cluster_name" />
168 <xs:element
169 ref="cl:cc_container_mem"
170 minOccurs="0" />
171 <xs:element
172 ref="cl:nc_container_mem"
173 minOccurs="0" />
174 <xs:element
175 ref="cl:env"
176 minOccurs="0" />
177 <xs:element
178 ref="cl:log_dir"
179 minOccurs="0" />
180 <xs:element
181 ref="cl:txn_log_dir"
182 minOccurs="0" />
183 <xs:element
184 ref="cl:store"
185 minOccurs="0" />
186 <xs:element
187 ref="cl:iodevices"
188 minOccurs="0" />
189 <xs:element ref="cl:metadata_node" />
190 <xs:element ref="cl:master_node" />
191 <xs:element
192 ref="cl:node"
193 maxOccurs="unbounded" />
194 <xs:element ref="cl:substitute_nodes" />
195 </xs:sequence>
196 </xs:complexType>
197 </xs:element>
Ian Maxon69375a12015-06-29 16:12:53 -0700198
199</xs:schema>