-
Notifications
You must be signed in to change notification settings - Fork 0
/
storm.xml
379 lines (351 loc) · 20 KB
/
storm.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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
<rdf:RDF
xmlns:kansei="http://geni-orca.renci.org/owl/kansei.owl#"
xmlns:compute="http://geni-orca.renci.org/owl/compute.owl#"
xmlns:app-color="http://geni-orca.renci.org/owl/app-color.owl#"
xmlns:ethernet="http://geni-orca.renci.org/owl/ethernet.owl#"
xmlns:dtn="http://geni-orca.renci.org/owl/dtn.owl#"
xmlns:time="http://www.w3.org/2006/time#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:openflow="http://geni-orca.renci.org/owl/openflow.owl#"
xmlns:modify-schema="http://geni-orca.renci.org/owl/modify.owl#"
xmlns:planetlab="http://geni-orca.renci.org/owl/planetlab.owl#"
xmlns:geni="http://geni-orca.renci.org/owl/geni.owl#"
xmlns:layer="http://geni-orca.renci.org/owl/layer.owl#"
xmlns:request-schema="http://geni-orca.renci.org/owl/request.owl#"
xmlns:ip4="http://geni-orca.renci.org/owl/ip4.owl#"
xmlns:orca="http://geni-orca.renci.org/owl/orca.owl#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:eucalyptus="http://geni-orca.renci.org/owl/eucalyptus.owl#"
xmlns:domain="http://geni-orca.renci.org/owl/domain.owl#"
xmlns:collections="http://geni-orca.renci.org/owl/collections.owl#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:ec2="http://geni-orca.renci.org/owl/ec2.owl#"
xmlns:request="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#"
xmlns:topology="http://geni-orca.renci.org/owl/topology.owl#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" >
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-supervisors-uh-ip-172-16-1-101">
<ip4:netmask>255.255.255.0</ip4:netmask>
<layer:label_ID>172.16.1.101</layer:label_ID>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/ip4.owl#IPAddress"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#TermDuration">
<time:days rdf:datatype="http://www.w3.org/2001/XMLSchema#decimal">14</time:days>
<rdf:type rdf:resource="http://www.w3.org/2006/time#DurationDescription"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#Term">
<time:hasDurationDescription rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#TermDuration"/>
<rdf:type rdf:resource="http://www.w3.org/2006/time#Interval"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#Storm-SiteAware-v0.2">
<topology:hasURL>http://geni-images.renci.org/images/dcvan/storm/Storm-SiteAware-v0.2/Storm-SiteAware-v0.2.xml</topology:hasURL>
<topology:hasGUID>047baee53ecb3455b8c527f064194cad9a67771a</topology:hasGUID>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/compute.owl#DiskImage"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-supervisors-ufl">
<ip4:localIPAddress rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-supervisors-ufl-ip-172-16-1-102"/>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/topology.owl#Interface"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-zookeeper-ip-172-16-1-2">
<ip4:netmask>255.255.255.0</ip4:netmask>
<layer:label_ID>172.16.1.2</layer:label_ID>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/ip4.owl#IPAddress"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-supervisors-ufl-ip-172-16-1-102">
<ip4:netmask>255.255.255.0</ip4:netmask>
<layer:label_ID>172.16.1.102</layer:label_ID>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/ip4.owl#IPAddress"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#supervisors-tamu">
<request-schema:postBootScript rdf:datatype="http://www.w3.org/2001/XMLSchema#string">cat >> /etc/hosts <<EOF
172.16.1.1 nimbus.storm nimbus
172.16.1.2 zookeeper.storm zookeeper
172.16.1.100 slave-0.storm slave-0
172.16.1.101 slave-1.storm slave-1
172.16.1.102 slave-2.storm slave-2
EOF
STORM_HOME="/opt/apache-storm-0.9.4"
ip_end=$(ifconfig eth1|grep "inet addr"|awk -F':' '{print $2}' |awk -F'[ .]' '{print $4}')
while [ ! "$ip_end" ];do
ip_end=$(ifconfig eth1|grep "inet addr"|awk -F':' '{print $2}' |awk -F'[ .]' '{print $4}')
sleep 1
done
hostname slave-$(($ip_end - 100))
site=$(/usr/local/bin/neuca-user-data |grep -m1 physical_host|awk -F'[=-]' '{print $2}')
while [ ! "$site" ];do
site=$(/usr/local/bin/neuca-user-data |grep -m1 physical_host|awk -F'[=-]' '{print $2}')
done
echo "supervisor.scheduler.meta:" >> $STORM_HOME/conf/storm.yaml
echo " site: \"$site\"" >> $STORM_HOME/conf/storm.yaml
cat >> /etc/supervisord.conf << EOF
[program:storm_supervisor]
command=$STORM_HOME/bin/storm supervisor
autostart=true
autorestart=true
startsecs=1
startretries=999
redirect_stderr=false
stdout_logfile=/var/log/storm-nimbus-out
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stdout_events_enabled=true
stderr_logfile=/var/log/storm-nimbus-err
stderr_logfile_maxbytes=100MB
stderr_logfile_backups=10
stderr_events_enabled=true
EOF
service supervisord start</request-schema:postBootScript>
<request-schema:dependOn rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#nimbus"/>
<domain:hasResourceType rdf:resource="http://geni-orca.renci.org/owl/compute.owl#VM"/>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/compute.owl#ServerCloud"/>
<request-schema:groupName>supervisors-tamu</request-schema:groupName>
<topology:hasInterface rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-supervisors-tamu"/>
<compute:specificCE rdf:resource="http://geni-orca.renci.org/owl/exogeni.owl#XOMedium"/>
<request-schema:inDomain rdf:resource="http://geni-orca.renci.org/owl/tamuvmsite.rdf#tamuvmsite/Domain"/>
<layer:numCE rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</layer:numCE>
<compute:diskImage rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#Storm-SiteAware-v0.2"/>
<request-schema:dependOn rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#zookeeper"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-supervisors-tamu-ip-172-16-1-100">
<ip4:netmask>255.255.255.0</ip4:netmask>
<layer:label_ID>172.16.1.100</layer:label_ID>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/ip4.owl#IPAddress"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-zookeeper">
<ip4:localIPAddress rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-zookeeper-ip-172-16-1-2"/>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/topology.owl#Interface"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-supervisors-tamu">
<ip4:localIPAddress rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-supervisors-tamu-ip-172-16-1-100"/>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/topology.owl#Interface"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#zookeeper">
<topology:hasInterface rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-zookeeper"/>
<request-schema:postBootScript rdf:datatype="http://www.w3.org/2001/XMLSchema#string">cat >> /etc/hosts <<EOF
172.16.1.1 nimbus.storm nimbus
172.16.1.2 zookeeper.storm zookeeper
172.16.1.100 slave-0.storm slave-0
172.16.1.101 slave-1.storm slave-1
172.16.1.102 slave-2.storm slave-2
EOF
ZK_HOME=/opt/zookeeper-3.4.6
hostname zookeeper
cat >> /etc/supervisord.conf << EOF
[program:zookeeper]
command=$ZK_HOME/bin/zkServer.sh start-foreground
autostart=true
autorestart=true
startsecs=1
startretries=999
redirect_stderr=false
stdout_logfile=/var/log/zookeeper-out
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stdout_events_enabled=true
stderr_logfile=/var/log/zookeeper-err
stderr_logfile_maxbytes=100MB
stderr_logfile_backups=10
stderr_events_enabled=true
EOF
service supervisord start</request-schema:postBootScript>
<request-schema:inDomain rdf:resource="http://geni-orca.renci.org/owl/tamuvmsite.rdf#tamuvmsite/Domain"/>
<compute:diskImage rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#Storm-SiteAware-v0.2"/>
<compute:specificCE rdf:resource="http://geni-orca.renci.org/owl/exogeni.owl#XOMedium"/>
<domain:hasResourceType rdf:resource="http://geni-orca.renci.org/owl/compute.owl#VM"/>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/compute.owl#ComputeElement"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/tamuvmsite.rdf#tamuvmsite/Domain">
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/topology.owl#NetworkDomain"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0">
<topology:hasInterface rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-supervisors-ufl"/>
<topology:hasInterface rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-nimbus"/>
<topology:hasInterface rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-supervisors-tamu"/>
<topology:hasInterface rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-zookeeper"/>
<topology:hasInterface rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-supervisors-uh"/>
<layer:atLayer rdf:resource="http://geni-orca.renci.org/owl/ethernet.owl#EthernetNetworkElement"/>
<layer:bandwidth rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">100000000</layer:bandwidth>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/topology.owl#BroadcastConnection"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/uhvmsite.rdf#uhvmsite/Domain">
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/topology.owl#NetworkDomain"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-nimbus-ip-172-16-1-1">
<ip4:netmask>255.255.255.0</ip4:netmask>
<layer:label_ID>172.16.1.1</layer:label_ID>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/ip4.owl#IPAddress"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-nimbus">
<ip4:localIPAddress rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-nimbus-ip-172-16-1-1"/>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/topology.owl#Interface"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#nimbus">
<topology:hasInterface rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-nimbus"/>
<request-schema:postBootScript rdf:datatype="http://www.w3.org/2001/XMLSchema#string">cat >> /etc/hosts <<EOF
172.16.1.1 nimbus.storm nimbus
172.16.1.2 zookeeper.storm zookeeper
172.16.1.100 slave-0.storm slave-0
172.16.1.101 slave-1.storm slave-1
172.16.1.102 slave-2.storm slave-2
EOF
STORM_HOME="/opt/apache-storm-0.9.4"
hostname nimbus
cat >> $STORM_HOME/conf/storm.yaml << EOF
storm.scheduler: "storm.scheduler.SiteAwareScheduler"
EOF
cat >> /etc/supervisord.conf << EOF
[program:storm_nimbus]
command=$STORM_HOME/bin/storm nimbus
autostart=true
autorestart=true
startsecs=1
startretries=999
redirect_stderr=false
stdout_logfile=/var/log/storm-nimbus-out
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stdout_events_enabled=true
stderr_logfile=/var/log/storm-nimbus-err
stderr_logfile_maxbytes=100MB
stderr_logfile_backups=10
stderr_events_enabled=true
[program:storm_ui]
command=$STORM_HOME/bin/storm ui
autostart=true
autorestart=true
startsecs=1
startretries=999
redirect_stderr=false
stdout_logfile=/var/log/storm-ui-out
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stdout_events_enabled=true
stderr_logfile=/var/log/storm-ui-err
stderr_logfile_maxbytes=100MB
stderr_logfile_backups=10
stderr_events_enabled=true
EOF
service supervisord start</request-schema:postBootScript>
<request-schema:inDomain rdf:resource="http://geni-orca.renci.org/owl/tamuvmsite.rdf#tamuvmsite/Domain"/>
<compute:diskImage rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#Storm-SiteAware-v0.2"/>
<compute:specificCE rdf:resource="http://geni-orca.renci.org/owl/exogeni.owl#XOMedium"/>
<domain:hasResourceType rdf:resource="http://geni-orca.renci.org/owl/compute.owl#VM"/>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/compute.owl#ComputeElement"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#supervisors-uh">
<compute:specificCE rdf:resource="http://geni-orca.renci.org/owl/exogeni.owl#XOMedium"/>
<domain:hasResourceType rdf:resource="http://geni-orca.renci.org/owl/compute.owl#VM"/>
<request-schema:dependOn rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#nimbus"/>
<compute:diskImage rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#Storm-SiteAware-v0.2"/>
<request-schema:groupName>supervisors-uh</request-schema:groupName>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/compute.owl#ServerCloud"/>
<request-schema:postBootScript rdf:datatype="http://www.w3.org/2001/XMLSchema#string">cat >> /etc/hosts <<EOF
172.16.1.1 nimbus.storm nimbus
172.16.1.2 zookeeper.storm zookeeper
172.16.1.100 slave-0.storm slave-0
172.16.1.101 slave-1.storm slave-1
172.16.1.102 slave-2.storm slave-2
EOF
STORM_HOME="/opt/apache-storm-0.9.4"
ip_end=$(ifconfig eth1|grep "inet addr"|awk -F':' '{print $2}' |awk -F'[ .]' '{print $4}')
while [ ! "$ip_end" ];do
ip_end=$(ifconfig eth1|grep "inet addr"|awk -F':' '{print $2}' |awk -F'[ .]' '{print $4}')
sleep 1
done
hostname slave-$(($ip_end - 100))
site=$(/usr/local/bin/neuca-user-data |grep -m1 physical_host|awk -F'[=-]' '{print $2}')
while [ ! "$site" ];do
site=$(/usr/local/bin/neuca-user-data |grep -m1 physical_host|awk -F'[=-]' '{print $2}')
done
echo "supervisor.scheduler.meta:" >> $STORM_HOME/conf/storm.yaml
echo " site: \"$site\"" >> $STORM_HOME/conf/storm.yaml
cat >> /etc/supervisord.conf << EOF
[program:storm_supervisor]
command=$STORM_HOME/bin/storm supervisor
autostart=true
autorestart=true
startsecs=1
startretries=999
redirect_stderr=false
stdout_logfile=/var/log/storm-nimbus-out
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stdout_events_enabled=true
stderr_logfile=/var/log/storm-nimbus-err
stderr_logfile_maxbytes=100MB
stderr_logfile_backups=10
stderr_events_enabled=true
EOF
service supervisord start</request-schema:postBootScript>
<topology:hasInterface rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-supervisors-uh"/>
<request-schema:dependOn rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#zookeeper"/>
<layer:numCE rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</layer:numCE>
<request-schema:inDomain rdf:resource="http://geni-orca.renci.org/owl/uhvmsite.rdf#uhvmsite/Domain"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/uflvmsite.rdf#uflvmsite/Domain">
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/topology.owl#NetworkDomain"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#supervisors-ufl">
<request-schema:dependOn rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#zookeeper"/>
<compute:specificCE rdf:resource="http://geni-orca.renci.org/owl/exogeni.owl#XOMedium"/>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/compute.owl#ServerCloud"/>
<request-schema:dependOn rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#nimbus"/>
<request-schema:groupName>supervisors-ufl</request-schema:groupName>
<compute:diskImage rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#Storm-SiteAware-v0.2"/>
<topology:hasInterface rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-supervisors-ufl"/>
<request-schema:inDomain rdf:resource="http://geni-orca.renci.org/owl/uflvmsite.rdf#uflvmsite/Domain"/>
<request-schema:postBootScript rdf:datatype="http://www.w3.org/2001/XMLSchema#string">cat >> /etc/hosts <<EOF
172.16.1.1 nimbus.storm nimbus
172.16.1.2 zookeeper.storm zookeeper
172.16.1.100 slave-0.storm slave-0
172.16.1.101 slave-1.storm slave-1
172.16.1.102 slave-2.storm slave-2
EOF
STORM_HOME="/opt/apache-storm-0.9.4"
ip_end=$(ifconfig eth1|grep "inet addr"|awk -F':' '{print $2}' |awk -F'[ .]' '{print $4}')
while [ ! "$ip_end" ];do
ip_end=$(ifconfig eth1|grep "inet addr"|awk -F':' '{print $2}' |awk -F'[ .]' '{print $4}')
sleep 1
done
hostname slave-$(($ip_end - 100))
site=$(/usr/local/bin/neuca-user-data |grep -m1 physical_host|awk -F'[=-]' '{print $2}')
while [ ! "$site" ];do
site=$(/usr/local/bin/neuca-user-data |grep -m1 physical_host|awk -F'[=-]' '{print $2}')
done
echo "supervisor.scheduler.meta:" >> $STORM_HOME/conf/storm.yaml
echo " site: \"$site\"" >> $STORM_HOME/conf/storm.yaml
cat >> /etc/supervisord.conf << EOF
[program:storm_supervisor]
command=$STORM_HOME/bin/storm supervisor
autostart=true
autorestart=true
startsecs=1
startretries=999
redirect_stderr=false
stdout_logfile=/var/log/storm-nimbus-out
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stdout_events_enabled=true
stderr_logfile=/var/log/storm-nimbus-err
stderr_logfile_maxbytes=100MB
stderr_logfile_backups=10
stderr_events_enabled=true
EOF
service supervisord start</request-schema:postBootScript>
<domain:hasResourceType rdf:resource="http://geni-orca.renci.org/owl/compute.owl#VM"/>
<layer:numCE rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</layer:numCE>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-supervisors-uh">
<ip4:localIPAddress rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0-supervisors-uh-ip-172-16-1-101"/>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/topology.owl#Interface"/>
</rdf:Description>
<rdf:Description rdf:about="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#">
<collections:element rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#VLAN0"/>
<collections:element rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#supervisors-tamu"/>
<collections:element rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#zookeeper"/>
<collections:element rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#nimbus"/>
<collections:element rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#supervisors-uh"/>
<collections:element rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#supervisors-ufl"/>
<request-schema:hasTerm rdf:resource="http://geni-orca.renci.org/owl/aec0e66b-2671-45be-8e95-9b60474023a2#Term"/>
<rdf:type rdf:resource="http://geni-orca.renci.org/owl/request.owl#Reservation"/>
</rdf:Description>
</rdf:RDF>