Tested on Ubuntu 16.04. Need ubuntu 16.04 update 4 or above
Install git
sudo apt-get install -y gitInstall Docker CE https://docs.docker.com/install/linux/docker-ce/ubuntu/#set-up-the-repository
sudo docker swarm init --advertise-addr <ip>is one of the ip on this Linux For example, for Virtualbox it can be host-only or bridged ip or docker0 ip
To list node joined:
sudo docker node lsGet HPCC-Docker-Stack to your host Linux:
git clone https://github.com/hpcc-systems/hpcc-dockercd to HPCC-Docker-Stack and run
sudo docker stack deploy -c docker-stack.yml hpcc"hpcc" is the app name. You can give other name.
Wait for all containers start...
sudo docker service lsAll service with prefix "hpcc_" should be started by checking "REPLICAS" column.
To configure the cluster to go bin/:
./cluster_config.shIf it deploys successfully it should print all HPCC node's running status To access ECLWatch: http://localhost:8010
There are several help scripts under bin/
Configure HPCC Cluster, setup ansible hosts file and stop/start HPCC cluster
Query entries of Docker/HPCC cluster For example list all components defined in environmentx.ml:
./cluster_query -q comp -c .*Get node ips of HPCC cluster:
./cluster_query -q ip -g HPCCGet docker container id from ip
./cluster_query -q id -p <ip>Get docker container id for admin node
./cluster_query -q id -g adminYou can use to access the container:
sudo docker exec -it <id> /bin/bashJust type "exit" to return the host
This script is for start/stop/restart HPCC as well as query status. It also can start configmgr.
To start/stop/restart or show status HPCC cluster:
./cluster_run.sh [start|stop|restart|status]To performan above action for particlar node give contianer id or ip:
./cluster_run.sh -p <ip> [start|stop|restart|status]
./cluster_run.sh -id <id> [start|stop|restart|status]To performace an action for a component:
./cluster_run.sh -p <ip> -c <comp name> [start|stop|restart|status]For example
./cluster_run.sh -p <ip> -c mydali statusTo start configmgr:
./cluster_run.sh -c configmgr startType Ctrl C to stop it
Replace "hpcc" with your app name if is different.
This will : stop HPCC cluster transfer /etc/HPCCSystems/source/environment.xml on admin node to all HPCC cluster nodes start HPCC cluster
cd to HPCC-Docker-Stack and run
sudo docker stack rm hpcc