Skip to main content

Quick Start

tip
  • Minimum machine configuration requirement 4C16G
  • docker-compose version 2.0 or above
  • Currently supported platforms are: amd64arm64

Install docker and docker-compose

You can refer to the official documentation to install it yourself or download the following installation package

wget https://primihub.oss-cn-beijing.aliyuncs.com/dev/docker20.10.tar.gz
tar xf docker20.10.tar.gz
cd docker20.10/
bash install_docker.sh

# Verify
docker -v
docker-compose version

Start node

Download the code and switch to the code root path

git clone https://github.com/primihub/primihub.git
cd primihub

Start up three docker containers using docker-compose. The container includes: three meta serives, three primihub-nodes

docker-compose up -d

View a running docker container:

docker-compose ps -a
NAME                COMMAND                  SERVICE             STATUS              PORTS
primihub-meta0 "/bin/bash -c 'java …" meta0 running (healthy)
primihub-meta1 "/bin/bash -c 'java …" meta1 running (healthy)
primihub-meta2 "/bin/bash -c 'java …" meta2 running (healthy)
primihub-node0 "/bin/bash -c './pri…" node0 running 50050/tcp
primihub-node1 "/bin/bash -c './pri…" node1 running 50050/tcp
primihub-node2 "/bin/bash -c './pri…" node2 running 50050/tcp

Check the logs

# docker logs -f primihub-node0
I20230619 19:18:38.774282 1 service.cc:205] 💾 Restore dataset from local storage...
I20230619 19:18:39.279953 1 service.cc:171] 📃 Load default datasets from config: /app/config/primihub_node0.yaml
I20230619 19:18:40.231341 1 main.cc:55] server runing in no tls mode
I20230619 19:18:40.232587 1 main.cc:86] 💻 Node listening on port: 50050

Create task

After the startup is successful, you can refer tocreate task run tasks.

Was this page helpful?

Happy React is loading...