Rate This Document
Findability
Accuracy
Completeness
Readability

openEuler 20.03 and openEuler 22.03

Before using the source code for compilation, install GCC/G++, Make, CMake, and glibc on each node. The corresponding versions are listed in the following table.

Table 1 Software required for source code compilation

Software Name

Required Version

GCC/G++

7.3.0

Make

4.2.1 or later

CMake

3.13.4 or later

glibc

2.25 or later

  1. Download the Conda software package and activate the Conda virtual environment.
    1. Download Conda.
      cd /opt
      wget -k https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-aarch64.sh
    2. Install Conda, for example, in the /opt/anaconda3 directory.
      bash Anaconda3-2022.05-Linux-aarch64.sh
    3. Initialize Conda.
      source /opt/anaconda3/etc/profile.d/conda.sh
    4. Create a Conda virtual environment named omnicache.
      conda create -n omnicache python=3.9
    5. Activate the Conda virtual environment.
      conda activate omnicache
  2. Use pip to download the Python dependencies.
    pip install Cython==0.29.24
    pip install docutils==0.19
    pip install numpy==1.22.3
    pip install pandas==1.3.5
    pip install ply==3.11
    pip install PuLP==2.4
    pip install py4j==0.10.9
    pip install pydoop==2.0.0
    pip install pyparsing==3.0.9
    pip install pypred==0.4.0
    pip install pyspark==3.1.1
    pip install python-dateutil==2.8.2
    pip install pytz==2022.2.1
    pip install PyYAML==6.0
    pip install six==1.16.0
    pip install torch==1.10.2
    pip install typing_extensions==4.3.0
    pip install z3-solver==4.8.15.0
  3. Use Conda to download the third-party GLPK library.
    conda install -c conda-forge glpk --yes

    If the download fails, see Failed to Install GLPK.

  4. Download the OmniCache view recommendation algorithm software package, OmniCache plugin JAR package, and OmniCache log parser JAR package to the server node of the Spark cluster. For details about how to obtain the software packages, see Obtaining Software. There is no special requirement on the software package paths. For example, you can store them in /opt/omnicache.
    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
  5. 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