Skip to main content

Manual Installation and Deployment(ARM version)

This document uses the CentOS/RedHat system as an example for deployment. Kirin V10 and Huawei Euler systems can also be used as a reference; the differences between Debian series systems will be noted separately.

1. Environment preparation

  1. Prepare a Linux server, minimum configuration requirements: 4 cores, 16G memory, 40G data disk (excluding system disk), more recommendations, ensure that the 8880, 38880, and 38881 ports are not occupied

  2. Log in to the server as root user

  3. If the server has a data disk, please mount the data disk to /data before deployment. directory, or [modify the default storage path of data] during installation (../../../faq/deployment.md#%E5%A6%82%E4%BD%95%E4%BF%AE%E6% 94%B9%E9%BB%98%E8%AE%A4%E7%9A%84%E5%AD%98%E5%82%A8%E8%B7%AF%E5%BE%84) is the mounting path of your data disk

  4. Close Firewalld (Debian/Ubuntu does not install this service by default, you can ignore this step)

    systemctl stop firewalld && systemctl disable firewalld
  5. Turn off SELinux (Debian/Ubuntu does not enable this function by default, you can ignore this step)

    setenforce 0
    sed -i s/"^SELINUX=.*$"/"SELINUX=disabled"/g /etc/selinux/config
  6. Adjust MaxMapCount

    sysctl -w vm.max_map_count=262144
    grep -q '^vm.max_map_count' /etc/sysctl.d/99-sysctl.conf && sed -i 's/^vm.max_map_count.*/vm.max_map_count=262144/' /etc/sysctl.d/99-sysctl.conf || echo 'vm.max_map_count=262144' >> /etc/sysctl.d/99-sysctl.conf
  7. Adjust SysFileNr

    sysctl -w fs.file-max=2048000
    grep -q '^fs.file-max' /etc/sysctl.d/99-sysctl.conf && sed -i 's/^fs.file-max.*/fs.file-max=2048000/' /etc/sysctl.d/99-sysctl.conf || echo 'fs.file-max=2048000' >> /etc/sysctl.d/99-sysctl.conf
  8. Adjust IPv4Forward

    sysctl -w net.ipv4.ip_forward=1
    grep -q '^net.ipv4.ip_forward' /etc/sysctl.d/99-sysctl.conf && sed -i 's/^net.ipv4.ip_forward.*/net.ipv4.ip_forward=1/' /etc/sysctl.d/99-sysctl.conf || echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.d/99-sysctl.conf
  9. If the operating system is Debian 10 or above, please first check whether iptables is available through the iptables --version command;

    If you do not have iptables, you need to install it. The reference command is as follows (the server needs to be able to access the Internet):

    apt-get update
    apt install -y iptables

2. Docker installation

  1. Download the docker installation package

    wget https://pdpublic.nocoly.com/offline/common/arm64/docker--.tgz
  2. Unzip and move the files to the binary file directory

    tar -zxvf docker--.tgz
    mv -f docker/* /usr/local/bin/
  3. Create docker configuration file

    The default docker data directory is /data/docker. If you need to modify the default data directory, please modify the data-root value in the configuration file

    mkdir -p /etc/docker/
    cat > /etc/docker/daemon.json <<EOF
    {
    "registry-mirrors": ["https://uvlkeb6d.mirror.aliyuncs.com"],
    "data-root": "/data/docker",
    "max-concurrent-downloads": 10,
    "exec-opts": ["native.cgroupdriver=cgroupfs"],
    "storage-driver": "overlay2",
    "default-address-pools":[{"base":"172.80.0.0/16","size":24}]
    }
    EOF
  4. Configure systemd to manage docker

    cat > /etc/systemd/system/docker.service <<EOF
    [Unit]
    Description=Docker
    After=network-online.target
    Wants=network-online.target
    [Service]
    Type=notify
    ExecStart=/usr/local/bin/dockerd
    ExecReload=/bin/kill -s HUP \$MAINPID
    LimitNOFILE=102400
    LimitNPROC=infinity
    LimitCORE=0
    TimeoutStartSec=0
    Delegate=yes
    KillMode=process
    Restart=on-failure
    StartLimitBurst=3
    StartLimitInterval=60s
    [Install]
    WantedBy=multi-user.target
    EOF
  5. Start docker

    systemctl daemon-reload && systemctl start docker && systemctl enable docker

3. Stand-alone version installation

  1. Download the image (Offline Package Download)

    docker pull nocoly/hdp-arm64:-
    docker pull nocoly/core-arm64:-
    docker pull nocoly/sc-arm64:-
    docker pull nocoly/flink-arm64:-
  2. Download the Manager

    wget https://pdpublic.nocoly.com/-/hap_captain_linux_arm64.tar.gz
  3. Create a directory and unzip the manager to the newly created directory

    mkdir /usr/local/MDPrivateDeployment/
    tar -zxvf hap_captain_linux_arm64.tar.gz -C /usr/local/MDPrivateDeployment/
  4. Enter the directory where the manager is located and start the manager

    cd /usr/local/MDPrivateDeployment/
    bash ./service.sh start
  5. After startup, access through http://{Server IP}:38881 in the browser and set the system access address, then select the HDP product for initialization (the initialization process lasts about 5 minutes)

  6. After the deployment is completed, it is recommended to refer to [How to configure automatic startup at startup](../../../faq/deployment.md#How to configure automatic startup at startup) to configure the service to automatically start at startup.