hadoop-ansible/roles/hbase_master_config/tasks/main.yml

32 lines
1.3 KiB
YAML

---
- name: Install the HBASE master environment file
template: src=hbase-master-env.sh.j2 dest=/etc/hbase/conf.{{ hadoop_cluster_name|lower }}/hbase-env.sh owner=root group=root mode=444
notify:
- Restart HBASE master
tags: [ 'hbase', 'configuration' ]
- name: Install the HBASE master core and site configuration file
template: src=templates/{{ item }}.j2 dest=/etc/hbase/conf.{{ hadoop_cluster_name|lower }}/{{ item }} owner=root group=root mode=0444
with_items:
- core-site.xml
- hbase-site.xml
notify: Restart HBASE master
tags: [ 'hbase', 'configuration' ]
- name: Check if the hbase-jmx conf directory exists
stat: path=/etc/hbase-jmx/conf
register: check_jmx_confdir
tags: [ 'hbase', 'configuration', 'jmx' ]
- name: Distribute the jmx authorization files for HBASE
template: src=templates/jmxremote.passwd.j2 dest=/etc/hbase-jmx/conf/jmxremote.passwd owner=hbase mode=0600
when: check_jmx_confdir.stat.exists and hadoop_jmx_enabled
notify: Restart HBASE master
tags: [ 'hbase', 'configuration', 'jmx' ]
- name: Distribute the jmx role files for HBASE
copy: src=files/jmxremote.access dest=/etc/hbase-jmx/conf/jmxremote.access owner=root mode=0644
when: check_jmx_confdir.stat.exists and hadoop_jmx_enabled
notify: Restart HBASE master
tags: [ 'hbase', 'configuration', 'jmx' ]