Name: db2warehouse-tools
Owner: International Business Machines
Description: This code shows how IBM® Db2 Warehouse MPP cluster can be deployed and administrated by using IBM® Db2 Warehouse Orchestrator tool.
Created: 2018-04-18 21:51:32.0
Updated: 2018-04-26 07:04:31.0
Pushed: 2018-04-26 07:04:29.0
Size: 21
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This code shows how IBM® Db2 Warehouse MPP cluster can be deployed and administrated by using IBM® Db2 Warehouse Orchestrator tool.
Download this code on each node of your MPP cluster.
wget https://github.com/IBM/db2warehouse-tools/archive/master.zip -O db2warehouse-tools-master.zip
unzip db2warehouse-tools-master.zip
cd db2warehouse-tools-master
chmod +x *.sh
Setup docker_remote on all hosts by following the instruction found here. This is an one time task.
./db2wh_orchestrator.sh --file /mnt/clusterfs/nodes --tag v2.6.0-db2wh-linux --create
./db2wh_orchestrator.sh --file /mnt/clusterfs/nodes --tag <version>-db2wh-linux --upgrade
./db2wh_orchestrator.sh --file /mnt/clusterfs/nodes --tag <image_tag> --scaleout [<short_hostname_of_node_to_add> <ip_addr_of_node_to_add>...n]
./db2wh_orchestrator.sh --file /mnt/clusterfs/nodes --tag <image_tag> --scalein [<short_hostname_of_node_to_add>...n]
To stop the existing deployment:
./db2wh_orchestrator.sh --file /mnt/clusterfs/nodes --stop
To start the the deployment:
./db2wh_orchestrator.sh --file /mnt/clusterfs/nodes --start