-
Notifications
You must be signed in to change notification settings - Fork 6
/
hosts
108 lines (86 loc) · 1.35 KB
/
hosts
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
[all:vars]
ansible_ssh_user=root
ansible_ssh_pass=123456
ntp_master=False
# FLUME
# =================
[flumes]
node1
node2
# NTPS
# 仅需要指定NTP master节点是哪一台主机,为master节点配置上ntp_master=True参数
# =================
[ntps]
node1 ntp_master=True
# ZOOKEEPER
# zookeeper组中的所有的主机需要手动指定额外的参数:myid
# =================
[zookeepers]
node1 myid=1
node2 myid=2
# HADDOP
# =================
# 所有主机不是yarn的resourcemanager的时候,ha_id默认都为rm1
[hadoop:vars]
ha_id=rm1
[hadoop:children]
namenodes
datanodes
journalnodes
resourcemanagers
nodemanagers
jobhistorys
[namenodes]
node1
node2
[journalnodes]
node1
node2
[datanodes]
node1
node2
# resourcemanagers 主机需要指定ha_id分别是rm1或rm2
[resourcemanagers]
node1 ha_id=rm1
node2 ha_id=rm2
[nodemanagers]
node1
node2
# 日志节点,只需要指定一个即可
[jobhistorys]
node2
# ES
# =================
[elasticsearchs:vars]
[elasticsearchs]
node2 node_master=True node_data=True
node1 node_master=True node_data=True
# HBASE
# =================
[hbase:children]
masters
regionservers
[hmasters]
node1
[regionservers]
node1
node2
# HIVE
# =================
[hives]
node2
# SPARK
# =================
[spark:children]
masters
works
[masters]
node1
node2
[works]
node1
node2
# SQOOP
# =================
[sqoops]
node2