Install and manage StarRocks automatically
- Installed the JAVA on all FE
- Installed the Mysql client on the master of all FE
- Set up SSH without passwords
- Download it from https://www.starrocks.com/zh-CN/download/community to directory (henry.starrocks/files)
- Add hosts in /etc/ansible/hosts e.g:
[dorisdb_all]
192.168.30.128
192.168.30.129
192.168.30.130
[dorisdb_frontends]
192.168.30.128
192.168.30.129
[dorisdb_master]
192.168.30.128
[dorisdb_follower]
192.168.30.129
[dorisdb_backends]
192.168.30.128
192.168.30.129
192.168.30.130
[dorisdb_brokers]
192.168.30.128
192.168.30.129
192.168.30.130
See meta/main.yml
See meta/main.yml
- hosts: dorisdb_all
roles:
- henry.starrocks
- Clean the files
$ ansible dorisdb_all -m shell -a "sudo rm -rf /home/starrocks/.local"
$ ansible dorisdb_all -m shell -a "sudo rm -rf /data/starrocks/meta"
$ ansible dorisdb_all -m shell -a "sudo rm -rf /data/starrocks/storage"
- Execute the Playbook
MIT
Henry