-
Notifications
You must be signed in to change notification settings - Fork 3
/
services.xml
executable file
·215 lines (181 loc) · 9.46 KB
/
services.xml
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<?xml version="1.0" encoding="utf-8"?>
<!--
Cloudera hadoop cluster configuration for clinit cluster manager.
The cluster consists of 4 hosts: hat0, hat1, hat2, hat3.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<service id="hdfs-namenode" host="hat0"
start="/etc/init.d/hadoop-hdfs-namenode start > /dev/null"
stop="/etc/init.d/hadoop-hdfs-namenode stop > /dev/null"
status="/etc/init.d/hadoop-hdfs-namenode status > /dev/null">
</service>
<service id="hdfs-datanode" host="hat1"
start="/etc/init.d/hadoop-hdfs-datanode start > /dev/null"
stop="/etc/init.d/hadoop-hdfs-datanode stop > /dev/null"
status="/etc/init.d/hadoop-hdfs-datanode status > /dev/null">
<requires id="hdfs-namenode" host="hat0" strong="true"/>
</service>
<service id="hdfs-datanode" host="hat2"
start="/etc/init.d/hadoop-hdfs-datanode start > /dev/null"
stop="/etc/init.d/hadoop-hdfs-datanode stop > /dev/null"
status="/etc/init.d/hadoop-hdfs-datanode status > /dev/null">
<requires id="hdfs-namenode" host="hat0" strong="true"/>
</service>
<service id="hdfs-datanode" host="hat3"
start="/etc/init.d/hadoop-hdfs-datanode start > /dev/null"
stop="/etc/init.d/hadoop-hdfs-datanode stop > /dev/null"
status="/etc/init.d/hadoop-hdfs-datanode status > /dev/null">
<requires id="hdfs-namenode" host="hat0" strong="true"/>
</service>
<service id="yarn-resourcemanager" host="hat0"
start="/etc/init.d/hadoop-yarn-resourcemanager start > /dev/null"
stop="/etc/init.d/hadoop-yarn-resourcemanager stop > /dev/null"
status="/etc/init.d/hadoop-yarn-resourcemanager status > /dev/null">
</service>
<service id="hadoop-mapreduce-historyserver" host="hat0"
start="/etc/init.d/hadoop-mapreduce-historyserver start > /dev/null"
stop="/etc/init.d/hadoop-mapreduce-historyserver stop > /dev/null"
status="/etc/init.d/hadoop-mapreduce-historyserver status > /dev/null">
<requires id="yarn-resourcemanager" host="hat0" strong="true"/>
</service>
<service id="yarn-nodemanager" host="hat1"
start="/etc/init.d/hadoop-yarn-nodemanager start > /dev/null"
stop="/etc/init.d/hadoop-yarn-nodemanager stop > /dev/null"
status="/etc/init.d/hadoop-yarn-nodemanager status > /dev/null">
<requires id="yarn-resourcemanager" host="hat0" strong="true"/>
</service>
<service id="yarn-nodemanager" host="hat2"
start="/etc/init.d/hadoop-yarn-nodemanager start > /dev/null"
stop="/etc/init.d/hadoop-yarn-nodemanager stop > /dev/null"
status="/etc/init.d/hadoop-yarn-nodemanager status > /dev/null">
<requires id="yarn-resourcemanager" host="hat0" strong="true"/>
</service>
<service id="yarn-nodemanager" host="hat3"
start="/etc/init.d/hadoop-yarn-nodemanager start > /dev/null"
stop="/etc/init.d/hadoop-yarn-nodemanager stop > /dev/null"
status="/etc/init.d/hadoop-yarn-nodemanager status > /dev/null">
<requires id="yarn-resourcemanager" host="hat0" strong="true"/>
</service>
<service id="mysql-meta" host="hat0"
start="/etc/init.d/mysqld start > /dev/null"
stop="/etc/init.d/mysqld stop > /dev/null"
status="/etc/init.d/mysqld status > /dev/null">
</service>
<service id="hive-metastore" host="hat0"
start="/etc/init.d/hive-metastore start > /dev/null"
stop="/etc/init.d/hive-metastore stop > /dev/null"
status="/etc/init.d/hive-metastore status > /dev/null">
<requires id="mysql-meta" host="hat0" strong="true"/>
</service>
<service id="hive-server2" host="hat0"
start="/etc/init.d/hive-server2 start > /dev/null"
stop="/etc/init.d/hive-server2 stop > /dev/null"
status="/etc/init.d/hive-server2 status > /dev/null">
<requires id="hive-metastore" host="hat0" strong="true"/>
<requires id="yarn-resourcemanager" host="hat0" strong="true"/>
<requires id="hdfs-namenode" host="hat0" strong="true"/>
</service>
<service id="impala-state-store" host="hat0"
start="/etc/init.d/impala-state-store start > /dev/null"
stop="/etc/init.d/impala-state-store stop > /dev/null"
status="/etc/init.d/impala-state-store status > /dev/null">
</service>
<service id="impala-catalog" host="hat0"
start="/etc/init.d/impala-catalog start > /dev/null"
stop="/etc/init.d/impala-catalog stop > /dev/null"
status="/etc/init.d/impala-catalog status > /dev/null">
<requires id="impala-state-store" host="hat0" strong="true"/>
<requires id="hive-metastore" host="hat0" strong="true"/>
</service>
<service id="impala-server" host="hat1"
start="/etc/init.d/impala-server start > /dev/null"
stop="/etc/init.d/impala-server stop > /dev/null"
status="/etc/init.d/impala-server status > /dev/null">
<requires id="impala-state-store" host="hat0" strong="true"/>
<requires id="hdfs-namenode" host="hat0" strong="true"/>
</service>
<service id="impala-server" host="hat2"
start="/etc/init.d/impala-server start > /dev/null"
stop="/etc/init.d/impala-server stop > /dev/null"
status="/etc/init.d/impala-server status > /dev/null">
<requires id="impala-state-store" host="hat0" strong="true"/>
<requires id="hdfs-namenode" host="hat0" strong="true"/>
</service>
<service id="impala-server" host="hat3"
start="/etc/init.d/impala-server start > /dev/null"
stop="/etc/init.d/impala-server stop > /dev/null"
status="/etc/init.d/impala-server status > /dev/null">
<requires id="impala-state-store" host="hat0" strong="true"/>
<requires id="hdfs-namenode" host="hat0" strong="true"/>
</service>
<service id="zookeeper-server" host="hat0"
start="/etc/init.d/zookeeper-server start > /dev/null 2> /dev/null"
stop="/etc/init.d/zookeeper-server stop > /dev/null 2> /dev/nul"
status="/etc/init.d/zookeeper-server status > /dev/null">
</service>
<service id="oozie" host="hat0"
start="/etc/init.d/oozie start > /dev/null"
stop="/etc/init.d/oozie stop > /dev/null"
status="/etc/init.d/oozie status > /dev/null">
<requires id="mysql-meta" host="hat0" strong="true"/>
</service>
<service id="hue" host="hat0"
start="/etc/init.d/hue start > /dev/null"
stop="/etc/init.d/hue stop > /dev/null"
status="/etc/init.d/hue status > /dev/null">
<requires id="hdfs-namenode" host="hat0" strong="true"/>
<requires id="oozie" host="hat0" strong="true"/>
<requires id="hive-server2" host="hat0" strong="true"/>
<requires id="hbase-thrift" host="hat0" strong="true"/>
<requires id="impala-server" host="hat1" strong="true"/>
</service>
<service id="hbase-master" host="hat0"
start="/etc/init.d/hbase-master start > /dev/null"
stop="/etc/init.d/hbase-master stop > /dev/null"
status="/etc/init.d/hbase-master status > /dev/null">
<requires id="hdfs-namenode" host="hat0" strong="true"/>
<requires id="zookeeper-server" host="hat0" strong="true"/>
</service>
<service id="hbase-thrift" host="hat0"
start="/etc/init.d/hbase-thrift start > /dev/null"
stop="/etc/init.d/hbase-thrift stop > /dev/null"
status="/etc/init.d/hbase-thrift status > /dev/null">
<requires id="hbase-master" host="hat0" strong="true"/>
</service>
<service id="hbase-regionserver" host="hat1"
start="/etc/init.d/hbase-regionserver start > /dev/null"
stop="/etc/init.d/hbase-regionserver stop > /dev/null"
status="/etc/init.d/hbase-regionserver status > /dev/null">
<requires id="hbase-master" host="hat0" strong="true"/>
</service>
<service id="solr-server" host="hat0"
start="/etc/init.d/solr-server start > /dev/null"
stop="/etc/init.d/solr-server stop > /dev/null"
status="/etc/init.d/solr-server status > /dev/null">
<requires id="hdfs-namenode" host="hat0" strong="true"/>
<requires id="zookeeper-server" host="hat0" strong="true"/>
</service>
<group name="hadoop">
<service id="hdfs-namenode" host="hat0"/>
<service id="hdfs-datanode" host="hat1"/>
<service id="hdfs-datanode" host="hat2"/>
<service id="hdfs-datanode" host="hat3"/>
<service id="yarn-resourcemanager" host="hat0"/>
<service id="hadoop-mapreduce-historyserver" host="hat0"/>
<service id="yarn-nodemanager" host="hat1"/>
<service id="yarn-nodemanager" host="hat2"/>
<service id="yarn-nodemanager" host="hat3"/>
</group>
<group name="impala">
<service id="impala-state-store" host="hat0"/>
<service id="impala-catalog" host="hat0"/>
<service id="impala-server" host="hat1"/>
<service id="impala-server" host="hat2"/>
<service id="impala-server" host="hat3"/>
</group>
<group name="hbase">
<service id="hbase-master" host="hat0"/>
<service id="hbase-thrift" host="hat0"/>
<service id="hbase-regionserver" host="hat1"/>
</group>
</services>