forked from mcsrainbow/ansible-playbook-cdh5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cdh5.yml
82 lines (65 loc) · 1.38 KB
/
cdh5.yml
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
---
- hosts: cdh5-all
roles:
- cdh5-base
- hosts: cdh5-zookeeperserver
roles:
- cdh5-zookeeperserver
- hosts: cdh5-journalnode
roles:
- cdh5-journalnode
- hosts: cdh5-namenode-primary
roles:
- cdh5-namenode-primary
- hosts: cdh5-namenode-backup
roles:
- cdh5-namenode-backup
- hosts: cdh5-namenode-primary
tasks:
- name: start zkfc for namenodes
service: name=hadoop-hdfs-zkfc state=started
tags:
- cdh5-namenode-primary
- cdh5-namenode-primary-zkfc
- hosts: cdh5-httpfs
roles:
- cdh5-httpfs
- hosts: cdh5-slave
roles:
- cdh5-slave
- hosts: cdh5-namenode-primary
tasks:
- name: create tmp directory
shell: creates={{ item }} sudo -u hdfs hadoop fs -mkdir -p /tmp; sudo -u hdfs hadoop fs -chmod -R 1777 /tmp && touch {{ item }}
with_items:
- /var/hadoop/.status/tmp_dir.created
tags:
- cdh5-namenode-primary
- cdh5-namenode-primary-tmpdir
- hosts: cdh5-resourcemanager
roles:
- cdh5-resourcemanager
- hosts: cdh5-hbase-master
roles:
- cdh5-hbase-master
- hosts: cdh5-hbase-regionserver
roles:
- cdh5-hbase-regionserver
- hosts: cdh5-hive
roles:
- cdh5-hive
- hosts: cdh5-oozie
roles:
- cdh5-oozie
- hosts: cdh5-pig
roles:
- cdh5-pig
- hosts: cdh5-spark
roles:
- cdh5-spark-base
- hosts: cdh5-spark-master
roles:
- cdh5-spark-master
- hosts: cdh5-spark-worker
roles:
- cdh5-spark-worker