Offline Environment Dependency Components Preparation
When the installation environment is isolated and unable to connect to the internet, the first step is to install the offline dependency package. This article provides information on the dependency components and offers CentOS offline dependency installation packages and offline dependency packages compatible with CentOS.
Dependency Component Information
There are some differences in component dependencies across different operating systems. Choose the corresponding dependency components for installation based on your deployment system.
Deployment Type | Required Dependency Component Information | Greenplum Engine Dependency Component Information | Doris Engine Dependency Component Information |
---|---|---|---|
Standalone | jdk-11, wget, net-tools, coreutils, rsync | python2.7, libcgroup-tools (cgroups dependency), m4, python-yaml | jdk-1.8 |
Cluster | ansible (only deployment installation node), jdk-11, wget, net-tools, coreutils, rsync | python2.7, libcgroup-tools (cgroups dependency), m4, python-yaml | jdk-1.8 |
JDK Component Resources
HENGSHI SENSE provides jdk-11 and jdk-1.8 component resources internally. You can use HENGSHI SENSE resources as needed or use your own resources.
- Use Own Resourcesshell
cd /opt/hengshi vi conf/hengshi-sense-env.sh ## Edit the configuration file export HS_JDK_HOME="jdk-11 deployment directory" ## Add this configuration information export DORIS_JDK_HOME="jdk-1.8 deployment directory" ## Add this configuration information when the engine type is Doris
- Use HENGSHI Resourcesshell
## jdk-11 resource acquisition cd /opt/hengshi/lib export hs_version="openjdk-11.0.17_8.1" wget https://download.hengshi.com/hs-jdk/${hs_version}.tar.gz tar -zxf ${hs_version}.tar.gz && rm ${hs_version}.tar.gz ln -sf ${hs_version} jdk ## When the engine type is Doris, jdk-1.8 resource acquisition cd /opt/hengshi/lib export hs_version="openjdk-8u352-b08-linux-64" wget https://download.hengshi.com/hs-jdk/${hs_version}.tar.gz tar -zxf ${hs_version}.tar.gz && rm ${hs_version}.tar.gz
Pre-built CentOS Offline Dependency Package Installation
The offline installation dependencies of HENGSHI SENSE mainly include the following three types.
- base: Dependencies required for normal standalone deployment, including openjdk and syslog-ng, etc.
- ansible: Additional ansible toolkit required for cluster deployment on virtual machines.
- Please download the corresponding offline zip package based on the OS version of the installation environment.
os | base | ansible |
---|---|---|
centos-7.9.2009 | base | ansible |
centos-7.8.2003 | base | ansible |
centos-7.7.1908 | base | ansible |
centos-7.6.1810 | base | ansible |
centos-7.5.1804 | base | ansible |
centos-7.4.1708 | base | ansible |
centos-7.3.1611 | base | ansible |
centos-7.2.1511 | base | ansible |
ubuntu-18.04 | base | |
ubuntu-20.04 | base | |
ubuntu-22.04 | base |
- Unzip and install the zip package. Below is an example of how to unzip and install using base as an example. The processing methods for syslog-ng and ansible installation packages are the same.
tar -xf base-<ver>.tar.gz
yum localinstall base-<ver>/*.rpm
Offline Dependency Package Installation Compatible with CentOS
When the OS of the installation environment is not CentOS but is compatible with CentOS, you can obtain the dependency packages and install them using the following method.
- Find the corresponding dependency packages based on the compatible CentOS versions in the table above, decompress them, and execute the following command to obtain the package names of all packages in the offline dependency package.shell
bash -c "source bin/init-os; echo \${DEP_PKGS[@]}"
- On an external network device with the same OS (both OS and CentOS version are the same) as the isolated environment, execute the following command to obtain the dependency packages. Where
PKG_PATH
is the download save path, andPKGS
are the package names of all packages in the dependency package obtained in step 1.shellsudo yum install yum-utils sudo yumdownloader --destdir=$PKG_PATH --resolve $PKGS
- Copy the dependency packages obtained in step 2 to the internal network machine and execute the following command to install the dependency packages, where
PKG_PATH
is the path where the dependency packages are stored in the internal network environment.shellsudo yum localinstall $PKG_PATH/*.rpm