CentOS 7.6
If an error is reported during Anaconda installation due to system compatibility issues, perform the following steps to install the dependencies.
- Mount the CentOS image and modify the Yum source.
mount CentOS-7-aarch64-Everything-1810.iso /media/
- Create a Yum configuration file.
- Create a /etc/yum.repos.d/CentOS-local.repo file.
vim /etc/yum.repos.d/CentOS-local.repo
- Press i to enter the insert mode and add the following content to the file:
[local] name=CentOS-7.6 local baseurl=file:///media/ enabled=1 gpgcheck=0
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Create a /etc/yum.repos.d/CentOS-local.repo file.
- Make the configuration file take effect.
yum clean all yum makecache
- Install Python 3.9.12.
- Install the dependencies.
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make libffi-devel
- Go to the /home directory and download the Python 3.9.12 source package.
cd /home wget https://www.python.org/ftp/python/3.9.12/Python-3.9.12.tgz --no-check-certificate
- Decompress the Python source package and go to the /Python-3.9.12 directory.
tar zxvf Python-3.9.12.tgz cd Python-3.9.12
- Configure the installation path.
./configure prefix=/usr/local/python3
- Perform compilation and installation.
make && make install
- Modify the Python soft links.
ln -s /usr/local/python3/bin/python3.9 /usr/bin/python3 ln -s /usr/local/python3/bin/pip3.9 /usr/bin/pip3
- Install the dependencies.
- Install the Python dependencies.
pip3 install Cython==0.29.24 pip3 install docutils==0.19 pip3 install numpy==1.22.3 pip3 install pandas==1.3.5 pip3 install ply==3.11 pip3 install PuLP==2.4 pip3 install py4j==0.10.9 pip3 install pydoop==2.0.0 pip3 install pyparsing==3.0.9 pip3 install pypred==0.4.0 pip3 install pyspark==3.1.1 pip3 install python-dateutil==2.8.2 pip3 install pytz==2022.2.1 pip3 install PyYAML==6.0 pip3 install six==1.16.0 pip3 install torch==1.10.2 pip3 install typing_extensions==4.3.0 pip3 install z3-solver==4.8.15.0
- If types.h cannot be found during Pydoop installation, see types.h Cannot Be Found During Pydoop Installation.
- If the download of the z3-solver dependency fails, see Failed to Install z3-solver.
- Install GLPK using the source code.
- Download the GLPK installation package.
wget https://ftp.gnu.org/gnu/glpk/glpk-5.0.tar.gz
- Decompress the installation package.
tar zxvf glpk-5.0.tar.gz
- Go to the glpk-5.0 directory and run the configuration script.
cd glpk-5.0 ./configure
- Perform compilation and installation.
make make install
- Download the GLPK installation package.
- Download the OmniCache view recommendation algorithm software package, OmniCache plugin JAR package, and OmniCache log parser JAR package, and upload them to the /opt/omnicache directory on the server node of the Spark cluster. For details about how to obtain the software packages, see Table 1.
mkdir -p /opt/omnicache mv boostkit-omnicache-spark-3.1.1-1.0.0-aarch64.jar /opt/omnicache mv boostkit-omnicache-logparser-spark-3.1.1-1.0.0-aarch64.jar /opt/omnicache mv BoostKit-omnicache_1.0.0.zip /opt/omnicache
- Decompress the OmniCache component package and remove the read and executable permissions of other user groups on the generated folder.
cd /opt/omnicache unzip BoostKit-omnicache_1.0.0.zip chmod -R o-r BoostKit-omnicache_1.0.0 chmod -R o-x BoostKit-omnicache_1.0.0
Parent topic: Deploying OmniCache