This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
galaxy-deployment-ansible-d…/Apache HBase/2.2.3/hbase/role/templates/rsgroup.sh.j2

24 lines
470 B
Plaintext
Raw Normal View History

#!/bin/bash
source /etc/profile
docker exec -it hbase hbase shell <<EOF
add_rsgroup 'important'
move_servers_rsgroup 'important',['{{ hostvars[groups.hbase[0]]['ansible_hostname'] }}:16020']
move_servers_rsgroup 'important',['{{ hostvars[groups.hbase[1]]['ansible_hostname'] }}:16020']
flush 'tsg:report_result'
move_tables_rsgroup 'important',['tsg:report_result']
flush 'tsg_galaxy:job_result'
move_tables_rsgroup 'important',['tsg_galaxy:job_result']
EOF