-
Notifications
You must be signed in to change notification settings - Fork 42
/
site.yaml
172 lines (146 loc) · 3.16 KB
/
site.yaml
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
---
- name: Check hosts file
tags: check
hosts: all
roles:
- check_config
- name: Setup local environment
tags:
- common
- clinit
- interfaces
- config
hosts: all
tasks:
- name: create working directory
local_action: file dest="{{ inventory_dir }}/workdir" state=directory
run_once: true
- name: Prepare hosts for cloudera hadoop cluster
tags: common
hosts: java
roles:
- common
- name: Deploy zookeeper
hosts: zookeepernodes
tags: zookeepernodes
roles:
- zookeeper
- name: Deploy hadoop configuration
tags:
- config
- hadoop
hosts: hadoop
roles:
- { role: hadoop, deploy: 'base' }
- name: Deploy journal nodes
tags: journalnodes
hosts: journalnodes
roles:
- { role: hadoop, deploy: 'journalnodes' }
- name: Deploy namenodes
tags: namenodes
hosts: namenodes
roles:
- { role: hadoop, deploy: 'namenodes' }
- { role: hadoop, deploy: 'namenodes-fence' }
- name: Deploy datanodes
tags: datanodes
hosts: datanodes
roles:
- { role: hadoop, deploy: 'datanodes' }
- name: Test hdfs
tags: test
hosts: namenodes
roles:
- { role: hadoop, deploy: 'test-hdfs' }
- name: Deploy yarn resource manager and job history server
tags: yarnresourcemanager
hosts: yarnresourcemanager
roles:
- { role: hadoop, deploy: 'resourcemanager' }
- name: Test mapreduce
tags: test
hosts: yarnresourcemanager
roles:
- { role: hadoop, deploy: 'test-mapreduce' }
- name: Deploy postgresql
tags: postgresql
hosts: postgresql
roles:
- postgresql
- name: Deploy hive metastore
tags: hivemetastore
hosts: hivemetastore
roles:
- { role: hivemetastore, deploy: 'hive-server' }
- name: Deploy hive client on datanodes
tags: hive
hosts: datanodes
roles:
- { role: hivemetastore, deploy: 'hive-client' }
- name: Deploy impala state-store and catalog
tags: impala
hosts: impala-store-catalog
roles:
- { role: impala, deploy: 'impala' }
- name: Deploy impala daemon on datanodes
tags: impala
hosts: datanodes
roles:
- { role: impala, deploy: 'impala-server' }
- name: Deploy HBase
tags: hbase
hosts: hbasemaster
roles:
- { role: hbase, deploy: 'hbase-master' }
- name: Deploy HBase regionservers on datanodes
tags: hbase
hosts: datanodes
roles:
- { role: hbase, deploy: 'regionserver' }
- name: Deploy spark
tags: spark
hosts: spark
roles:
- spark
- name: Deploy solr search
tags: solr
hosts: solr
roles:
- solr
- name: Deploy oozie
tags: oozie
hosts: oozie
roles:
- oozie
- name: Deploy kafka
tags: kafka
hosts: kafka
roles:
- kafka
- name: Deploy Hue
tags: hue
hosts: hue
roles:
- hue
- name: Deploy snmp monitoring
tags: snmp
hosts: java
roles:
- { role: snmp, when: enable_snmp }
- name: Deploy syslog-ng monitoring
tags: syslog
hosts: java
roles:
- { role: syslog-ng, when: enable_syslog }
- name: cluster
tags: cluster
hosts: yarnresourcemanager
tasks:
- debug: msg="{{ lookup('pipe', 'echo; clinit -S workdir/services.xml --nocolors tree;echo =')}}"
run_once: true
- name: dashboard
tags: dashboard
hosts: dashboard
roles:
- dashboard