You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
2.0 KiB
YAML

---
- name: Install the mapred-site config file for the jobtracker HA
template: src=mapred-site-jobtracker.j2 dest=/etc/hadoop/conf/mapred-site.xml owner=root group=root mode=0444
notify:
- Restart mapreduce HA jobtracker
tags: [ 'hadoop', 'jobtracker', 'jt_conf' ]
- name: Install the mapred-queue-acls config
copy: src=mapred-queue-acls.xml dest=/etc/hadoop/conf/mapred-queue-acls.xml owner=root group=root mode=0444
notify:
- Restart mapreduce HA jobtracker
tags: [ 'hadoop', 'jobtracker' ]
- name: Install the mapreduce schedulers config
copy: src=mapreduce-{{ item }} dest=/etc/hadoop/conf/{{ item }} owner=root group=root mode=0444
with_items:
- fair-scheduler.xml
- capacity-scheduler.xml
tags: [ 'hadoop', 'jobtracker', 'jt_scheduler' ]
- name: Install the mapred_hosts_allow config
template: src=mapred_hosts_allow.txt.j2 dest=/etc/hadoop/conf/mapred_hosts_allow.txt owner=root group=root mode=0444
notify:
- Restart mapreduce HA jobtracker
tags: [ 'hadoop', 'jobtracker', 'hadoop_workers' ]
- name: Install the mapred_hosts_exclude config
copy: src=mapred_hosts_exclude.txt dest=/etc/hadoop/conf/mapred_hosts_exclude.txt owner=root group=root mode=0444
tags: [ 'hadoop', 'jobtracker', 'hadoop_workers', 'hadoop_exclude' ]
- name: Check if the hadoop-jmx conf directory exists
stat: path=/etc/hadoop-jmx/conf
register: check_jmx_confdir
tags: [ 'hadoop', 'jobtracker', 'jmx' ]
- name: Distribute the jmx authorization files for the jobtracker
template: src=templates/jmxremote.passwd.j2 dest=/etc/hadoop-jmx/conf/jmxremote.passwd owner=mapred mode=0600
when: check_jmx_confdir.stat.exists and hadoop_jmx_enabled
notify:
- Restart mapreduce HA jobtracker
tags: [ 'hadoop', 'jobtracker', 'jmx' ]
- name: Distribute the jmx role files for hadoop jobtracker
copy: src=files/jmxremote.access dest=/etc/hadoop-jmx/conf/jmxremote.access owner=root mode=0644
when: check_jmx_confdir.stat.exists and hadoop_jmx_enabled
notify:
- Restart mapreduce HA jobtracker
tags: [ 'hadoop', 'jobtracker', 'jmx' ]