Ian Maxon | 69375a1 | 2015-06-29 16:12:53 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="ISO-8859-1" ?> |
Preston Carman | c66d23a | 2015-07-08 23:44:13 -0700 | [diff] [blame] | 2 | <xs:schema |
| 3 | xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 4 | xmlns:cl="yarn_cluster" |
| 5 | targetNamespace="yarn_cluster" |
| 6 | elementFormDefault="qualified"> |
Ian Maxon | 69375a1 | 2015-06-29 16:12:53 -0700 | [diff] [blame] | 7 | |
| 8 | <!-- definition of simple types --> |
Preston Carman | c66d23a | 2015-07-08 23:44:13 -0700 | [diff] [blame] | 9 | <xs:element |
| 10 | name="instance_name" |
| 11 | type="xs:string" /> |
| 12 | <xs:element |
| 13 | name="cluster_name" |
| 14 | type="xs:string" /> |
| 15 | <xs:element |
| 16 | name="log_dir" |
| 17 | type="xs:string" /> |
| 18 | <xs:element |
| 19 | name="txn_log_dir" |
| 20 | type="xs:string" /> |
| 21 | <xs:element |
| 22 | name="id" |
| 23 | type="xs:string" /> |
| 24 | <xs:element |
| 25 | name="client_ip" |
| 26 | type="xs:string" /> |
| 27 | <xs:element |
| 28 | name="cluster_ip" |
| 29 | type="xs:string" /> |
| 30 | <xs:element |
| 31 | name="key" |
| 32 | type="xs:string" /> |
| 33 | <xs:element |
| 34 | name="value" |
| 35 | type="xs:string" /> |
| 36 | <xs:element |
| 37 | name="store" |
| 38 | type="xs:string" /> |
| 39 | <xs:element |
| 40 | name="iodevices" |
| 41 | type="xs:string" /> |
| 42 | <xs:element |
| 43 | name="web_port" |
| 44 | type="xs:string" /> |
| 45 | <xs:element |
| 46 | name="client_port" |
| 47 | type="xs:integer" /> |
| 48 | <xs:element |
| 49 | name="cluster_port" |
| 50 | type="xs:integer" /> |
| 51 | <xs:element |
| 52 | name="http_port" |
| 53 | type="xs:integer" /> |
| 54 | <xs:element |
| 55 | name="debug_port" |
| 56 | type="xs:integer" /> |
| 57 | <xs:element |
| 58 | name="metadata_node" |
| 59 | type="xs:string" /> |
| 60 | <xs:element |
| 61 | name="cc_container_mem" |
| 62 | type="xs:string" /> |
| 63 | <xs:element |
| 64 | name="nc_container_mem" |
| 65 | type="xs:string" /> |
Ian Maxon | 69375a1 | 2015-06-29 16:12:53 -0700 | [diff] [blame] | 66 | |
| 67 | |
| 68 | <!-- definition of complex elements --> |
| 69 | |
Preston Carman | c66d23a | 2015-07-08 23:44:13 -0700 | [diff] [blame] | 70 | <xs:element name="master_node"> |
| 71 | <xs:complexType> |
| 72 | <xs:sequence> |
| 73 | <xs:element ref="cl:id" /> |
| 74 | <xs:element ref="cl:client_ip" /> |
| 75 | <xs:element ref="cl:cluster_ip" /> |
| 76 | <xs:element |
| 77 | ref="cl:log_dir" |
| 78 | minOccurs="0" /> |
| 79 | <xs:element ref="cl:client_port" /> |
| 80 | <xs:element ref="cl:cluster_port" /> |
| 81 | <xs:element ref="cl:http_port" /> |
| 82 | <xs:element |
| 83 | ref="cl:debug_port" |
| 84 | minOccurs="0" /> |
| 85 | </xs:sequence> |
| 86 | </xs:complexType> |
| 87 | </xs:element> |
Ian Maxon | 69375a1 | 2015-06-29 16:12:53 -0700 | [diff] [blame] | 88 | |
Preston Carman | c66d23a | 2015-07-08 23:44:13 -0700 | [diff] [blame] | 89 | <xs:element name="property"> |
| 90 | <xs:complexType> |
| 91 | <xs:sequence> |
| 92 | <xs:element ref="cl:key" /> |
| 93 | <xs:element ref="cl:value" /> |
| 94 | </xs:sequence> |
| 95 | </xs:complexType> |
| 96 | </xs:element> |
Ian Maxon | 69375a1 | 2015-06-29 16:12:53 -0700 | [diff] [blame] | 97 | |
Preston Carman | c66d23a | 2015-07-08 23:44:13 -0700 | [diff] [blame] | 98 | <xs:element name="env"> |
| 99 | <xs:complexType> |
| 100 | <xs:sequence> |
| 101 | <xs:element |
| 102 | ref="cl:property" |
| 103 | minOccurs="0" |
| 104 | maxOccurs="unbounded" /> |
| 105 | </xs:sequence> |
| 106 | </xs:complexType> |
| 107 | </xs:element> |
Ian Maxon | 69375a1 | 2015-06-29 16:12:53 -0700 | [diff] [blame] | 108 | |
Preston Carman | c66d23a | 2015-07-08 23:44:13 -0700 | [diff] [blame] | 109 | <xs:element name="node"> |
| 110 | <xs:complexType> |
| 111 | <xs:sequence> |
| 112 | <xs:element ref="cl:id" /> |
| 113 | <xs:element ref="cl:cluster_ip" /> |
| 114 | <xs:element |
| 115 | ref="cl:log_dir" |
| 116 | minOccurs="0" /> |
| 117 | <xs:element |
| 118 | ref="cl:txn_log_dir" |
| 119 | minOccurs="0" /> |
| 120 | <xs:element |
| 121 | ref="cl:store" |
| 122 | minOccurs="0" /> |
| 123 | <xs:element |
| 124 | ref="cl:iodevices" |
| 125 | minOccurs="0" /> |
| 126 | <xs:element |
| 127 | ref="cl:debug_port" |
| 128 | minOccurs="0" /> |
| 129 | </xs:sequence> |
| 130 | </xs:complexType> |
| 131 | </xs:element> |
Ian Maxon | 69375a1 | 2015-06-29 16:12:53 -0700 | [diff] [blame] | 132 | |
Preston Carman | c66d23a | 2015-07-08 23:44:13 -0700 | [diff] [blame] | 133 | <xs:element name="substitute_nodes"> |
| 134 | <xs:complexType> |
| 135 | <xs:sequence> |
| 136 | <xs:element |
| 137 | ref="cl:node" |
| 138 | maxOccurs="unbounded" /> |
| 139 | </xs:sequence> |
| 140 | </xs:complexType> |
| 141 | </xs:element> |
Ian Maxon | 69375a1 | 2015-06-29 16:12:53 -0700 | [diff] [blame] | 142 | |
Preston Carman | c66d23a | 2015-07-08 23:44:13 -0700 | [diff] [blame] | 143 | <xs:element name="cluster"> |
| 144 | <xs:complexType> |
| 145 | <xs:sequence> |
| 146 | <xs:element ref="cl:instance_name" /> |
| 147 | <xs:element ref="cl:cluster_name" /> |
| 148 | <xs:element |
| 149 | ref="cl:cc_container_mem" |
| 150 | minOccurs="0" /> |
| 151 | <xs:element |
| 152 | ref="cl:nc_container_mem" |
| 153 | minOccurs="0" /> |
| 154 | <xs:element |
| 155 | ref="cl:env" |
| 156 | minOccurs="0" /> |
| 157 | <xs:element |
| 158 | ref="cl:log_dir" |
| 159 | minOccurs="0" /> |
| 160 | <xs:element |
| 161 | ref="cl:txn_log_dir" |
| 162 | minOccurs="0" /> |
| 163 | <xs:element |
| 164 | ref="cl:store" |
| 165 | minOccurs="0" /> |
| 166 | <xs:element |
| 167 | ref="cl:iodevices" |
| 168 | minOccurs="0" /> |
| 169 | <xs:element ref="cl:metadata_node" /> |
| 170 | <xs:element ref="cl:master_node" /> |
| 171 | <xs:element |
| 172 | ref="cl:node" |
| 173 | maxOccurs="unbounded" /> |
| 174 | <xs:element ref="cl:substitute_nodes" /> |
| 175 | </xs:sequence> |
| 176 | </xs:complexType> |
| 177 | </xs:element> |
Ian Maxon | 69375a1 | 2015-06-29 16:12:53 -0700 | [diff] [blame] | 178 | |
| 179 | </xs:schema> |