forked from saltstack-formulas/hadoop-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpillar_ha.example
22 lines (19 loc) · 1.24 KB
/
pillar_ha.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# a pillar example of aspects specific to HDFS Namenode High Availability
# if HA is configured like below, there will be no secondary namenode
# On each namenode you have to have a match of the namenode_target **and** either primary or secondary NN target
hdfs:
namenode_target: "roles:hadoop_master" # Specify compound matching string to match both your namenodes
primarynamenode_target: "roles:hdfs_namenode1" # this node will do the NN format, init zookeeper and run a zkfc
secondarynamenode_target: "roles:hdfs_namenode2" # will run the standby namenode and the other zkfc
journalnode_target: "roles:hdfs_journalnode"
datanode_target: "roles:hadoop_slave" # Specify compound matching string to match all your datanodes e.g. if you were to use pillar I@datanode:true
config:
namenode_port: 8020 # ports are not individually configurable - namenodes have to be on different hosts
namenode_http_port: 50070
# the rest of hdfs config as usual
# the yarn Resourcemanager needs specific targeting in a HA cluster - it cannot be
# targeted with the default "hadoop_master" role here because then you would end up
# with two RM processes - one on each namenode.
yarn:
resourcemanager_target: "roles:yarn_master"
# ... the rest goes as usual