Rate This Document
Findability
Accuracy
Completeness
Readability

Environment Preparations

Use the deployment script extracted from deployment.tar.gz in the BoostKit-globalcache_1.3.15.SPC3.zip package.

  1. Copy node_list.txt in deployment.tar.gz to /home.
    1
    2
    3
    cd /home
    tar -zxvf deployment.tar.gz
    cp deployment/nodelist.txt /home/
    
  2. Set the Yum certificate verification status to be verification-free.
    1
    vi /etc/yum.conf
    
    Add the following content to the end of the file:
    1
    2
    sslverify=false
    deltarpm=0
    
  3. Configure the pip Huawei proxy to accelerate the download.
    1
    2
    mkdir -p ~/.pip
    vi ~/.pip/pip.conf
    

    Add the following content:

    1
    2
    3
    4
    [global]
    timeout = 120
    index-url = https://repo.huaweicloud.com/repository/pypi/simple
    trusted-host = repo.huaweicloud.com
    
  4. Configure Java.
    Decompress OpenJDK8U-jdk_aarch64_linux_hotspot_jdk8u282-b08.tar.gz to the /usr/local directory.
    1
    2
    cd /home
    tar -zxvf OpenJDK8U-jdk_aarch64_linux_hotspot_jdk8u282-b08.tar.gz -C /usr/local/
    
  5. Configure Maven.
    1. Decompress apache-maven-3.6.3-bin.tar.gz to the /usr/local directory.
      1
      2
      cd /home
      tar -zxvf apache-maven-3.6.3-bin.tar.gz -C /usr/local/
      
    2. Add a mirror.
      1
      vi /usr/local/apache-maven-3.6.3/conf/settings.xml
      

      Add the following content to <mirrors>:

      1
      2
      3
      4
      5
      <mirror>
          <id>huaweicloud</id>
          <mirrorOf>*</mirrorOf>
          <url>https://repo.huaweicloud.com/repository/maven/</url>
      </mirror>
      

      If no proxy is configured for Maven, add <proxy> to the <proxies> segment of the settings.xml file.

  6. Set Java and Maven environment variables.
    1. Modify the environment variables.
      1
      vi /etc/profile
      

      Add the following content to the end of the file:

      1
      2
      3
      4
      5
      export JAVA_HOME=/usr/local/jdk8u282-b08
      export PATH=${JAVA_HOME}/bin:$PATH
      MAVEN_HOME=/usr/local/apache-maven-3.6.3
      export MAVEN_HOME
      export PATH=${PATH}:$MAVEN_HOME/bin
      
    2. Make the environment variables take effect.
      1
      source /etc/profile
      
    3. Check whether Java is successfully installed.
      1
      java -version
      

      If the correct version information is displayed, the installation is successful. If the installation fails, check the installation procedure and try again.

    4. Check whether Maven is successfully installed.
      1
      mvn -v
      

      If the correct version information is displayed, the installation is successful. If the installation fails, check the installation procedure and try again.