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.
64 lines
1.7 KiB
YAML
64 lines
1.7 KiB
YAML
---
|
|
# HDFS namenode
|
|
- name: Install the hdfs config files.
|
|
template: src=templates/{{ item }}.j2 dest={{ hadoop_conf_dir }}/{{ item }} owner=root group=root mode=0444
|
|
with_items:
|
|
- core-site.xml
|
|
notify:
|
|
- Restart HDFS namenode
|
|
tags:
|
|
- namenode
|
|
- hdfs
|
|
|
|
- name: Install the hdfs config files.
|
|
template: src=templates/namenode-{{ item }}.j2 dest={{ hadoop_conf_dir }}/{{ item }} owner=root group=root mode=0444
|
|
with_items:
|
|
- hdfs-site.xml
|
|
notify:
|
|
- Restart HDFS namenode
|
|
tags:
|
|
- namenode
|
|
- hdfs
|
|
- hdfs_site
|
|
|
|
- name: Install the dfs hosts allow file
|
|
template: src=dfs_hosts_allow.txt.j2 dest={{ hadoop_conf_dir }}/dfs_hosts_allow.txt owner=root group=root mode=0444
|
|
notify:
|
|
- Restart HDFS namenode
|
|
tags:
|
|
- namenode
|
|
- hdfs
|
|
- hadoop_workers
|
|
|
|
- name: Install the dfs hosts exclude file
|
|
copy: src=dfs_hosts_exclude.txt dest={{ hadoop_conf_dir }}/dfs_hosts_exclude.txt owner=root group=root mode=0444
|
|
tags:
|
|
- namenode
|
|
- hdfs
|
|
- hadoop_workers
|
|
- hadoop_exclude
|
|
|
|
- name: Check if the hadoop-jmx conf directory exists
|
|
stat: path=/etc/hadoop-jmx/conf
|
|
register: check_jmx_confdir
|
|
|
|
- name: Distribute the jmx authorization files for hadoop hdfs
|
|
template: src=templates/jmxremote.passwd.j2 dest=/etc/hadoop-jmx/conf/jmxremote.passwd owner=hdfs mode=0600
|
|
when: check_jmx_confdir.stat.exists and hadoop_jmx_enabled
|
|
notify:
|
|
- Restart HDFS namenode
|
|
tags:
|
|
- hadoop
|
|
- hdfs
|
|
- jmx
|
|
|
|
- name: Distribute the jmx role files for hadoop hdfs
|
|
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 HDFS namenode
|
|
tags:
|
|
- hadoop
|
|
- hdfs
|
|
- jmx
|