39 lines
1.7 KiB
YAML
39 lines
1.7 KiB
YAML
---
|
|
- name: Install the HBASE regionserver environment file
|
|
template: src=templates/hbase-regionserver-env.sh.j2 dest=/etc/hbase/conf.{{ hadoop_cluster_name|lower }}/hbase-env.sh owner=root group=root mode=444
|
|
notify: Restart HBASE regionserver
|
|
tags: [ 'hbase', 'hbase_conf', 'configuration' ]
|
|
|
|
- name: Install the HBASE regionserver 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 regionserver
|
|
tags: [ 'hbase', 'hbase_conf', 'hbase_site', 'configuration' ]
|
|
|
|
- name: Install the HBASE limits files
|
|
template: src=limits-{{ item }}.j2 dest=/etc/security/limits.d/{{ item }} owner=root group=root mode=0444
|
|
with_items:
|
|
- hbase.conf
|
|
- hbase.nofiles.conf
|
|
notify: Restart HBASE regionserver
|
|
tags: [ 'hbase', 'hbase_conf', 'hbase_limits', 'configuration' ]
|
|
|
|
- name: Check if the hbase-jmx conf directory exists
|
|
stat: path=/etc/hbase-jmx/conf
|
|
register: check_jmx_confdir
|
|
tags: [ 'hbase', 'hbase_conf', 'jmx', 'configuration' ]
|
|
|
|
- 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 regionserver
|
|
tags: [ 'hbase', 'hbase_conf', 'jmx', 'configuration' ]
|
|
|
|
- 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 regionserver
|
|
tags: [ 'hbase', 'hbase_conf', 'jmx', 'configuration' ]
|