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
-
Prepare a Linux server, minimum configuration requirements: 4 cores, 16G memory, 40G data disk (excluding system disk), more recommendations, ensure that the
8880,38880, and38881ports are not occupied -
Log in to the server as root user
-
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
-
Close Firewalld (Debian/Ubuntu does not install this service by default, you can ignore this step)
systemctl stop firewalld && systemctl disable firewalld -
Turn off SELinux (Debian/Ubuntu does not enable this function by default, you can ignore this step)
setenforce 0sed -i s/"^SELINUX=.*$"/"SELINUX=disabled"/g /etc/selinux/config -
Adjust MaxMapCount
sysctl -w vm.max_map_count=262144grep -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 -
Adjust SysFileNr
sysctl -w fs.file-max=2048000grep -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 -
Adjust IPv4Forward
sysctl -w net.ipv4.ip_forward=1grep -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 -
If the operating system is Debian 10 or above, please first check whether iptables is available through the
iptables --versioncommand;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 updateapt install -y iptables
2. Docker installation
-
Download the docker installation package
- The server supports access to the Internet
- The server does not support access to the Internet
wget https://pdpublic.nocoly.com/offline/common/arm64/docker--.tgz#Docker installation package file download link, upload to the deployment server after downloading is completehttps://pdpublic.nocoly.com/offline/common/arm64/docker--.tgz -
Unzip and move the files to the binary file directory
tar -zxvf docker--.tgzmv -f docker/* /usr/local/bin/ -
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 -
Configure systemd to manage docker
cat > /etc/systemd/system/docker.service <<EOF[Unit]Description=DockerAfter=network-online.targetWants=network-online.target[Service]Type=notifyExecStart=/usr/local/bin/dockerdExecReload=/bin/kill -s HUP \$MAINPIDLimitNOFILE=102400LimitNPROC=infinityLimitCORE=0TimeoutStartSec=0Delegate=yesKillMode=processRestart=on-failureStartLimitBurst=3StartLimitInterval=60s[Install]WantedBy=multi-user.targetEOF -
Start docker
systemctl daemon-reload && systemctl start docker && systemctl enable docker
3. Stand-alone version installation
-
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:- -
Download the Manager
wget https://pdpublic.nocoly.com/-/hap_captain_linux_arm64.tar.gz -
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/ -
Enter the directory where the manager is located and start the manager
cd /usr/local/MDPrivateDeployment/bash ./service.sh start -
After startup, access through
http://{Server IP}:38881in the browser and set the system access address, then select the HDP product for initialization (the initialization process lasts about 5 minutes) -
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.